Class Scope.Literal

java.lang.Object
io.micronaut.coherence.annotation.Scope.Literal
All Implemented Interfaces:
Annotation
Enclosing class:
Scope

public static final class Scope.Literal extends Object implements Scope
An annotation literal for the Scope annotation.
See Also:
  • Method Details

    • of

      public static Scope.Literal of(String sValue)
      Create a Scope.Literal.
      Parameters:
      sValue - the scope name or URI used to identify a specific ConfigurableCacheFactory
      Returns:
      a Scope.Literal with the specified URI
    • value

      public String value()
      Obtain the name value.
      Returns:
      the name value
    • 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.