Class ServiceName.Literal

java.lang.Object
io.micronaut.coherence.annotation.AbstractNamedLiteral<ServiceName>
io.micronaut.coherence.annotation.ServiceName.Literal
All Implemented Interfaces:
Annotation
Enclosing class:
ServiceName

public static final class ServiceName.Literal extends AbstractNamedLiteral<ServiceName> implements ServiceName
An annotation literal for the ServiceName annotation.
See Also:
  • Method Details

    • of

      public static ServiceName.Literal of(String sName)
      Parameters:
      sName - the service name
      Returns:
      a ServiceName.Literal with the specified value
    • value

      public String value()
      The name used to identify a specific service.
      Returns:
      the name used to identify a specific service
    • annotationType

      public Class<? extends Annotation> annotationType()
      Method returns the type of the annotation literal. The value is resolved lazily during the first call of this method.
      Specified by:
      annotationType in interface Annotation
      Returns:
      annotation type of this literal.