|
||||||||||
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 Class[] |
AROUND_INVOKE_METHOD_PARAM
|
Constructor Summary | |
---|---|
JeeAnnotationUtils()
|
Method Summary | ||
---|---|---|
static List<Method> |
findAnnotatedMethods(Class clazz,
Class<? extends Annotation> A)
Find all the methods on the given class and superclasses that have the given annotation. |
|
static List<Method> |
findAnnotatedMethods(Class clazz,
Class<? extends Annotation> A,
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 Method |
findAroundInvokeMethod(Class clazz)
Find the EJB3 around invoke method |
|
static
|
findFieldAnnotation(Class<A> annotationClass,
Class targetClass,
String fieldName,
Class fieldType)
Returns the annotation for the given field (specified by name and type) using the inheritance mechanism defined in JSR 250. |
|
static Method |
findFirstAnnotatedMethod(Class clazz,
Class<? extends Annotation> A,
Class... argTypes)
Find all methods with the given annotation and argument types on the given class and all its superclasses. |
|
static
|
findInheritedMemberAnnotation(Class<A> annotationClass,
Class enclosingClass,
AccessibleObject member)
Apply the jsr250 annotation algorithm to retrieve the annotation value for the given member. |
|
static
|
findMethodAnnotation(Class<A> annotationClass,
Class targetClass,
String methodName)
|
|
static
|
findMethodAnnotation(Class<A> annotationClass,
Class targetClass,
String methodName,
Class... parameterTypes)
Returns the annotation for the given method (specified by name and parameterTypes) using the inheritance mechanism defined in JSR 250. |
|
static
|
findMethodAnnotation(Class<A> annotationClass,
Method method,
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 Class[] AROUND_INVOKE_METHOD_PARAM
Constructor Detail |
---|
public JeeAnnotationUtils()
Method Detail |
---|
public static <A extends Annotation> A findInheritedMemberAnnotation(Class<A> annotationClass, Class enclosingClass, AccessibleObject member)
A
- annotationClass
- enclosingClass
- member
-
public static <A extends Annotation> A findFieldAnnotation(Class<A> annotationClass, Class targetClass, String fieldName, 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 Annotation> A findMethodAnnotation(Class<A> annotationClass, Class targetClass, String methodName, Class... parameterTypes)
A
- annotationClass
- targetClass
- methodName
- parameterTypes
-
public static <A extends Annotation> A findMethodAnnotation(Class<A> annotationClass, Class targetClass, String methodName)
public static <A extends Annotation> A findMethodAnnotation(Class<A> annotationClass, Method method, Class clazz)
A
- annotationClass
- method
- clazz
-
public static List<Method> findAnnotatedMethods(Class clazz, Class<? extends Annotation> A)
clazz
- A
-
public static List<Method> findAnnotatedMethods(Class clazz, Class<? extends Annotation> A, Class... argTypes)
clazz
- A
- argTypes
-
public static Method findFirstAnnotatedMethod(Class clazz, Class<? extends Annotation> A, Class... argTypes)
clazz
- component class to introspectA
- class of annotation to findargTypes
- types of arguments to expect
public static Method findAroundInvokeMethod(Class clazz)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |