com.caucho.config
Class Names
java.lang.Object
javax.enterprise.util.AnnotationLiteral<Named>
com.caucho.config.Names
- All Implemented Interfaces:
- java.io.Serializable, java.lang.annotation.Annotation, Named
public class Names
- extends AnnotationLiteral<Named>
- implements Named
Utility class for creating @Name annotations, used for generic
resources like DataSources.
- See Also:
- Serialized Form
Constructor Summary |
Names(java.lang.String name)
|
Method Summary |
static Named |
create(java.lang.String value)
Creates a new @Name annotation with the given value |
java.lang.String |
toString()
|
java.lang.String |
value()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.annotation.Annotation |
annotationType, equals, hashCode |
Names
public Names(java.lang.String name)
create
public static Named create(java.lang.String value)
- Creates a new @Name annotation with the given value
value
public java.lang.String value()
toString
public java.lang.String toString()
- Specified by:
toString
in interface java.lang.annotation.Annotation
- Overrides:
toString
in class AnnotationLiteral<Named>