Package jakarta.enterprise.util
Class AnnotationLiteral<T extends Annotation>
- java.lang.Object
- 
- jakarta.enterprise.util.AnnotationLiteral<T>
 
- 
- Type Parameters:
- T- the annotation type
 - All Implemented Interfaces:
- Serializable,- Annotation
 - Direct Known Subclasses:
- Alternative.Literal,- Any.Literal,- ApplicationMap.Literal,- ApplicationScoped.Literal,- AutoApplySession.Literal,- BeforeDestroyed.Literal,- ConversationScoped.Literal,- Default.Literal,- Dependent.Literal,- Destroyed.Literal,- FacesBehavior.Literal,- FacesConfig.Literal,- FacesConverter.Literal,- FacesDataModel.Literal,- FacesValidator.Literal,- FlowBuilderParameter.Literal,- FlowDefinition.Literal,- FlowMap.Literal,- HeaderMap.Literal,- HeaderValuesMap.Literal,- Initialized.Literal,- InitParameterMap.Literal,- InjectLiteral,- LoginToContinue.Literal,- ManagedProperty.Literal,- NamedLiteral,- Nonbinding.Literal,- Push.Literal,- QualifierLiteral,- RememberMe.Literal,- RequestCookieMap.Literal,- RequestMap.Literal,- RequestParameterMap.Literal,- RequestParameterValuesMap.Literal,- RequestScoped.Literal,- SessionMap.Literal,- SessionScoped.Literal,- SingletonLiteral,- Specializes.Literal,- TransientReference.Literal,- Typed.Literal,- Vetoed.Literal,- View.Literal,- ViewMap.Literal,- WebsocketEvent.Closed.Literal,- WebsocketEvent.Opened.Literal
 
 public abstract class AnnotationLiteral<T extends Annotation> extends Object implements Annotation, Serializable Supports inline instantiation of annotation type instances. Reflection operations are using SecurityActionsutility class to support security manager.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; } };- Author:
- Pete Muir, Gavin King, Marko Luksa, Antoine Sabot-Durand
- See Also:
- Instance.select(Annotation...),- Event.select(Annotation...), Serialized Form
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedAnnotationLiteral()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Annotation>annotationType()booleanequals(Object other)inthashCode()StringtoString()
 
- 
- 
- 
Method Detail- 
annotationTypepublic Class<? extends Annotation> annotationType() - Specified by:
- annotationTypein interface- Annotation
 
 - 
toStringpublic String toString() - Specified by:
- toStringin interface- Annotation
- Overrides:
- toStringin class- Object
 
 - 
equalspublic boolean equals(Object other) - Specified by:
- equalsin interface- Annotation
- Overrides:
- equalsin class- Object
 
 - 
hashCodepublic int hashCode() - Specified by:
- hashCodein interface- Annotation
- Overrides:
- hashCodein class- Object
 
 
- 
 
-