|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.jee.JeeAnnotationUtils
public abstract class JeeAnnotationUtils
Utility class used for finding annotation using the inheritance rules from jsr250.
Field Summary | |
---|---|
static java.lang.Class[] |
AROUND_INVOKE_METHOD_PARAM
|
Constructor Summary | |
---|---|
JeeAnnotationUtils()
|
Method Summary | ||
---|---|---|
static java.util.List<java.lang.reflect.Method> |
findAnnotatedMethods(java.lang.Class clazz,
java.lang.Class<? extends java.lang.annotation.Annotation> A)
Find all the methods on the given class and superclasses that have the given annotation. |
|
static java.util.List<java.lang.reflect.Method> |
findAnnotatedMethods(java.lang.Class clazz,
java.lang.Class<? extends java.lang.annotation.Annotation> A,
java.lang.Class... argTypes)
Find all the methods on the given class and superclasses that have the given annotation and the given signature (jsr250 is not applied). |
|
static java.lang.reflect.Method |
findAroundInvokeMethod(java.lang.Class clazz)
Find the EJB3 around invoke method |
|
static
|
findFieldAnnotation(java.lang.Class<A> annotationClass,
java.lang.Class targetClass,
java.lang.String fieldName,
java.lang.Class fieldType)
Returns the annotation for the given field (specified by name and type) using the inheritance mechanism defined in JSR 250. |
|
static java.lang.reflect.Method |
findFirstAnnotatedMethod(java.lang.Class clazz,
java.lang.Class<? extends java.lang.annotation.Annotation> A,
java.lang.Class... argTypes)
Find all methods with the given annotation and argument types on the given class and all its superclasses. |
|
static
|
findInheritedMemberAnnotation(java.lang.Class<A> annotationClass,
java.lang.Class enclosingClass,
java.lang.reflect.AccessibleObject member)
Apply the jsr250 annotation algorithm to retrieve the annotation value for the given member. |
|
static
|
findMethodAnnotation(java.lang.Class<A> annotationClass,
java.lang.Class targetClass,
java.lang.String methodName)
|
|
static
|
findMethodAnnotation(java.lang.Class<A> annotationClass,
java.lang.Class targetClass,
java.lang.String methodName,
java.lang.Class... parameterTypes)
Returns the annotation for the given method (specified by name and parameterTypes) using the inheritance mechanism defined in JSR 250. |
|
static
|
findMethodAnnotation(java.lang.Class<A> annotationClass,
java.lang.reflect.Method method,
java.lang.Class clazz)
Finds the annotation for a method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class[] AROUND_INVOKE_METHOD_PARAM
Constructor Detail |
---|
public JeeAnnotationUtils()
Method Detail |
---|
public static <A extends java.lang.annotation.Annotation> A findInheritedMemberAnnotation(java.lang.Class<A> annotationClass, java.lang.Class enclosingClass, java.lang.reflect.AccessibleObject member)
A
- annotationClass
- enclosingClass
- member
-
public static <A extends java.lang.annotation.Annotation> A findFieldAnnotation(java.lang.Class<A> annotationClass, java.lang.Class targetClass, java.lang.String fieldName, java.lang.Class fieldType)
A
- annotationClass
- annotation class to look fortargetClass
- target class to look atfieldName
- field namefieldType
- field type (optional - can be null)
public static <A extends java.lang.annotation.Annotation> A findMethodAnnotation(java.lang.Class<A> annotationClass, java.lang.Class targetClass, java.lang.String methodName, java.lang.Class... parameterTypes)
A
- annotationClass
- targetClass
- methodName
- parameterTypes
-
public static <A extends java.lang.annotation.Annotation> A findMethodAnnotation(java.lang.Class<A> annotationClass, java.lang.Class targetClass, java.lang.String methodName)
public static <A extends java.lang.annotation.Annotation> A findMethodAnnotation(java.lang.Class<A> annotationClass, java.lang.reflect.Method method, java.lang.Class clazz)
A
- annotationClass
- method
- clazz
-
public static java.util.List<java.lang.reflect.Method> findAnnotatedMethods(java.lang.Class clazz, java.lang.Class<? extends java.lang.annotation.Annotation> A)
clazz
- A
-
public static java.util.List<java.lang.reflect.Method> findAnnotatedMethods(java.lang.Class clazz, java.lang.Class<? extends java.lang.annotation.Annotation> A, java.lang.Class... argTypes)
clazz
- A
- argTypes
-
public static java.lang.reflect.Method findFirstAnnotatedMethod(java.lang.Class clazz, java.lang.Class<? extends java.lang.annotation.Annotation> A, java.lang.Class... argTypes)
clazz
- component class to introspectA
- class of annotation to findargTypes
- types of arguments to expect
public static java.lang.reflect.Method findAroundInvokeMethod(java.lang.Class clazz)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |