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:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micronaut.coherence.annotation.ServiceName
ServiceName.Literal
-
Field Summary
Fields inherited from class io.micronaut.coherence.annotation.AbstractNamedLiteral
f_sName
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation>
Method returns the type of the annotation literal.static ServiceName.Literal
Create aServiceName.Literal
.value()
The name used to identify a specific service.Methods inherited from class io.micronaut.coherence.annotation.AbstractNamedLiteral
equals, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.annotation.Annotation
toString
-
Method Details
-
of
Create aServiceName.Literal
.- Parameters:
sName
- the service name- Returns:
- a
ServiceName.Literal
with the specified value
-
value
The name used to identify a specific service.- Returns:
- the name used to identify a specific service
-
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 interfaceAnnotation
- Returns:
- annotation type of this literal.
-