Class CacheName.Literal

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

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

    • of

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

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