Package javax.enterprise.util
Class AnnotationLiteral<T extends java.lang.annotation.Annotation>
- java.lang.Object
-
- javax.enterprise.util.AnnotationLiteral<T>
-
- Type Parameters:
T- wrapped annotation class
- All Implemented Interfaces:
java.io.Serializable,java.lang.annotation.Annotation
public abstract class AnnotationLiteral<T extends java.lang.annotation.Annotation> extends java.lang.Object implements java.lang.annotation.Annotation, java.io.SerializableAnnotation literal utility.- Version:
- $Rev$ $Date$
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAnnotationLiteral.PrivilegedActionForAccessibleObject
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<T>annotationTypeprivate static java.lang.Object[]EMPTY_OBJECT_ARRAYprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protectedAnnotationLiteral()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends java.lang.annotation.Annotation>annotationType()private java.lang.ObjectcallMethod(java.lang.Object instance, java.lang.reflect.Method method)booleanequals(java.lang.Object other)private java.lang.Class<T>getAnnotationType(java.lang.Class<?> definedClazz)inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
annotationType
private java.lang.Class<T extends java.lang.annotation.Annotation> annotationType
-
EMPTY_OBJECT_ARRAY
private static final java.lang.Object[] EMPTY_OBJECT_ARRAY
-
-
Method Detail
-
annotationType
public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
- Specified by:
annotationTypein interfacejava.lang.annotation.Annotation
-
getAnnotationType
private java.lang.Class<T> getAnnotationType(java.lang.Class<?> definedClazz)
-
equals
public boolean equals(java.lang.Object other)
- Specified by:
equalsin interfacejava.lang.annotation.Annotation- Overrides:
equalsin classjava.lang.Object
-
callMethod
private java.lang.Object callMethod(java.lang.Object instance, java.lang.reflect.Method method)
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.lang.annotation.Annotation- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfacejava.lang.annotation.Annotation- Overrides:
toStringin classjava.lang.Object
-
-