Package javax.enterprise.util
Class AnnotationLiteral<T extends Annotation>
java.lang.Object
javax.enterprise.util.AnnotationLiteral<T>
- Type Parameters:
 T- the annotation type
- All Implemented Interfaces:
 Serializable,Annotation
- Direct Known Subclasses:
 Alternative.Literal,Any.Literal,ApplicationScoped.Literal,BeforeDestroyed.Literal,ClaimLiteral,ConfigProperties.Literal,ConversationScoped.Literal,Default.Literal,Dependent.Literal,Destroyed.Literal,Initialized.Literal,InjectLiteral,Liveness.Literal,NamedLiteral,New.Literal,Nonbinding.Literal,QualifierLiteral,Readiness.Literal,RequestScoped.Literal,RestClient.RestClientLiteral,SessionScoped.Literal,SingletonLiteral,Specializes.Literal,Startup.Literal,TransientReference.Literal,Typed.Literal,Vetoed.Literal
public abstract class AnnotationLiteral<T extends Annotation>
extends Object
implements Annotation, Serializable
Supports inline instantiation of annotation type instances.
An instance of an annotation type may be obtained by subclassing AnnotationLiteral.
 public abstract class PayByQualifier extends AnnotationLiteral<PayBy> implements PayBy {
 }
 
 
 
 PayBy payByCheque = new PayByQualifier() {
     public PaymentMethod value() {
         return CHEQUE;
     }
 };
 - 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
AnnotationLiteral
protected AnnotationLiteral() 
 - 
 - 
Method Details
- 
annotationType
- Specified by:
 annotationTypein interfaceAnnotation
 - 
toString
- Specified by:
 toStringin interfaceAnnotation- Overrides:
 toStringin classObject
 - 
equals
- Specified by:
 equalsin interfaceAnnotation- Overrides:
 equalsin classObject
 - 
hashCode
public int hashCode()- Specified by:
 hashCodein interfaceAnnotation- Overrides:
 hashCodein classObject
 
 -