com.caucho.config
Class Names

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

Names

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

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>