Class ServiceName.Literal
- java.lang.Object
-
- io.micronaut.coherence.annotation.AbstractNamedLiteral<ServiceName>
-
- io.micronaut.coherence.annotation.ServiceName.Literal
-
- All Implemented Interfaces:
java.lang.annotation.Annotation
- Enclosing class:
- ServiceName
public static class ServiceName.Literal extends AbstractNamedLiteral<ServiceName> implements ServiceName
An annotation literal for theServiceNameannotation.- See Also:
- Serialized Form
-
-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends java.lang.annotation.Annotation>annotationType()Method returns the type of the annotation literal.static ServiceName.Literalof(java.lang.String sName)Create aServiceName.Literal.java.lang.Stringvalue()The name used to identify a specific service.-
Methods inherited from class io.micronaut.coherence.annotation.AbstractNamedLiteral
equals, hashCode
-
-
-
-
Method Detail
-
of
public static ServiceName.Literal of(java.lang.String sName)
Create aServiceName.Literal.- Parameters:
sName- the service name- Returns:
- a
ServiceName.Literalwith the specified value
-
value
public java.lang.String value()
The name used to identify a specific service.- Returns:
- the name used to identify a specific service
-
annotationType
public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
Method returns the type of the annotation literal. The value is resolved lazily during the first call of this method.- Specified by:
annotationTypein interfacejava.lang.annotation.Annotation- Returns:
- annotation type of this literal.
-
-