Module org.glassfish.hk2.api
Package org.glassfish.hk2.api
Class AnnotationLiteral<T extends Annotation>
java.lang.Object
org.glassfish.hk2.api.AnnotationLiteral<T>
- Type Parameters:
T- the annotation type
- All Implemented Interfaces:
Serializable,Annotation
- Direct Known Subclasses:
NamedImpl,UnqualifiedImpl
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 {}
An extension of AnnotationLiteral must do two things:
- Must have the target annotation as its generic type
- Must implement the target type
- Author:
- jwells
- See Also:
-
Constructor Details
-
AnnotationLiteral
protected AnnotationLiteral()
-
-
Method Details
-
annotationType
- Specified by:
annotationTypein interfaceAnnotation
-
equals
- Specified by:
equalsin interfaceAnnotation- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceAnnotation- Overrides:
hashCodein classObject
-