public final class AopUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<?> type,
java.lang.Class<T> annotation) |
static <T extends java.lang.annotation.Annotation> |
getAnnotation(org.aspectj.lang.JoinPoint joinPoint,
java.lang.Class<T> annotation) |
static java.lang.reflect.Method |
getDeclaredMethod(java.lang.Class<?> type,
java.lang.String methodName,
java.lang.Class<?>... parameterTypes)
Gets declared method from specified type by mame and parameters types.
|
static java.lang.reflect.Method |
getMethodFromTarget(org.aspectj.lang.JoinPoint joinPoint)
Gets a
Method object from target object (not proxy class). |
static java.lang.reflect.Method |
getMethodFromTarget(org.aspectj.lang.JoinPoint joinPoint,
java.lang.String methodName)
Gets a
Method object from target object by specified method name. |
static java.lang.String |
getMethodInfo(java.lang.reflect.Method m) |
static java.lang.Class[] |
getParameterTypes(org.aspectj.lang.JoinPoint joinPoint)
Gets parameter types of the join point.
|
public static java.lang.reflect.Method getMethodFromTarget(org.aspectj.lang.JoinPoint joinPoint)
Method object from target object (not proxy class).joinPoint - the JoinPointMethod object or null if method doesn't exist or if the signature at a join point
isn't sub-type of MethodSignaturepublic static java.lang.reflect.Method getMethodFromTarget(org.aspectj.lang.JoinPoint joinPoint,
java.lang.String methodName)
Method object from target object by specified method name.joinPoint - the JoinPointmethodName - the method nameMethod object or null if method with specified methodName doesn't existpublic static java.lang.Class[] getParameterTypes(org.aspectj.lang.JoinPoint joinPoint)
joinPoint - the join pointpublic static java.lang.reflect.Method getDeclaredMethod(java.lang.Class<?> type,
java.lang.String methodName,
java.lang.Class<?>... parameterTypes)
type - the typemethodName - the name of the methodparameterTypes - the parameter arrayMethod object or null if method doesn't existpublic static <T extends java.lang.annotation.Annotation> com.google.common.base.Optional<T> getAnnotation(org.aspectj.lang.JoinPoint joinPoint,
java.lang.Class<T> annotation)
public static <T extends java.lang.annotation.Annotation> com.google.common.base.Optional<T> getAnnotation(java.lang.Class<?> type,
java.lang.Class<T> annotation)
public static java.lang.String getMethodInfo(java.lang.reflect.Method m)