Class MapName.Literal

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

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

    • of

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

      public String value()
      The name used to identify a specific map.
      Returns:
      the name used to identify a specific map
    • 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.