Class Name.Literal

java.lang.Object
com.oracle.coherence.cdi.AnnotationLiteral<Name>
com.oracle.coherence.cdi.Name.Literal
All Implemented Interfaces:
Annotation
Enclosing class:
Name

public static class Name.Literal extends AnnotationLiteral<Name> implements Name
An annotation literal for the Name annotation.
See Also:
  • Constructor Details

    • Literal

      public Literal(String sName, boolean fRegex)
      Construct Name.Literal instance.
      Parameters:
      sName - the resource name
      fRegex - true to indicate whether name is a regular expression
  • Method Details

    • of

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

      public String value()
      The name used to identify a specific resource.
      Returns:
      the name used to identify a specific resource
    • regex

      public boolean regex()
      Return true to indicate whether name is a regular expression.
      Returns:
      true to indicate whether name is a regular expression