com.caucho.inject
Class NamedLiteral

java.lang.Object
  extended by javax.enterprise.util.AnnotationLiteral<Named>
      extended by 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

Constructor Summary
NamedLiteral()
           
NamedLiteral(java.lang.String name)
           
 
Method Summary
 java.lang.String toString()
           
 java.lang.String value()
           
 
Methods inherited from class javax.enterprise.util.AnnotationLiteral
annotationType, equals, hashCode
 
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
 

Constructor Detail

NamedLiteral

public NamedLiteral()

NamedLiteral

public NamedLiteral(java.lang.String name)
Method Detail

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>