Class ScopeName.Literal
- java.lang.Object
-
- io.micronaut.coherence.annotation.AbstractNamedLiteral<ScopeName>
-
- io.micronaut.coherence.annotation.ScopeName.Literal
-
- All Implemented Interfaces:
java.lang.annotation.Annotation
- Enclosing class:
- ScopeName
public static class ScopeName.Literal extends AbstractNamedLiteral<ScopeName> implements ScopeName
An annotation literal for theScopeName
annotation.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.micronaut.coherence.annotation.ScopeName
ScopeName.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 ScopeName.Literal
of(java.lang.String sName)
Create aScopeName.Literal
.java.lang.String
value()
The name used to identify a specific scope.-
Methods inherited from class io.micronaut.coherence.annotation.AbstractNamedLiteral
equals, hashCode
-
-
-
-
Method Detail
-
of
public static ScopeName.Literal of(java.lang.String sName)
Create aScopeName.Literal
.- Parameters:
sName
- the scope name- Returns:
- a
ScopeName.Literal
with the specified value
-
value
public java.lang.String value()
The name used to identify a specific scope.- Returns:
- the name used to identify a specific scope
-
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:
annotationType
in interfacejava.lang.annotation.Annotation
- Returns:
- annotation type of this literal.
-
-