com.caucho.inject
Class NamedLiteral
java.lang.Object
javax.enterprise.util.AnnotationLiteral<Named>
com.caucho.inject.NamedLiteral
- All Implemented Interfaces:
- java.io.Serializable, java.lang.annotation.Annotation, Named
public class NamedLiteral
- extends AnnotationLiteral<Named>
- implements Named
Utility class for creating @Name annotations, used for generic
resources like DataSources.
- See Also:
- Serialized Form
Method Summary |
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 |
NamedLiteral
public NamedLiteral()
NamedLiteral
public NamedLiteral(java.lang.String name)
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>