Class AbstractNamedLiteral<T extends Annotation>

java.lang.Object
io.micronaut.coherence.annotation.AbstractNamedLiteral<T>
Type Parameters:
T - the annotation type
All Implemented Interfaces:
Serializable, Annotation
Direct Known Subclasses:
CacheName.Literal, MapName.Literal, ScopeName.Literal, SerializerFormat.Literal, ServiceName.Literal, SessionName.Literal, SubscriberGroup.Literal

public abstract class AbstractNamedLiteral<T extends Annotation> extends Object
Base class for annotation literals with a single simple name.
See Also:
  • Field Details

    • f_sName

      protected final String f_sName
      The cache name.
  • Constructor Details

    • AbstractNamedLiteral

      protected AbstractNamedLiteral(String sName)
      Construct CacheName.Literal instance.
      Parameters:
      sName - the cache name
  • Method Details

    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Annotation
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Annotation
    • 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.