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.Serializable
Annotation literal utility.- Version:
- $Rev$ $Date$
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AnnotationLiteral.PrivilegedActionForAccessibleObject
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<T>
annotationType
private static java.lang.Object[]
EMPTY_OBJECT_ARRAY
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protected
AnnotationLiteral()
-
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.Object
callMethod(java.lang.Object instance, java.lang.reflect.Method method)
boolean
equals(java.lang.Object other)
private java.lang.Class<T>
getAnnotationType(java.lang.Class<?> definedClazz)
int
hashCode()
java.lang.String
toString()
-
-
-
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:
annotationType
in 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:
equals
in interfacejava.lang.annotation.Annotation
- Overrides:
equals
in classjava.lang.Object
-
callMethod
private java.lang.Object callMethod(java.lang.Object instance, java.lang.reflect.Method method)
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.lang.annotation.Annotation
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.lang.annotation.Annotation
- Overrides:
toString
in classjava.lang.Object
-
-