| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Utility methods used by the AOP framework.
| Method Summary | |
static boolean | canApply(Pointcut pc, Class targetClass, Class[] proxyInterfaces)Can the given pointcut apply at all on the given class? This is an important test as it can be used to optimize out a pointcut for a class |
static boolean | canApply(Advisor advisor, Class targetClass, Class[] proxyInterfaces) |
static Class[] | getAllInterfaces(Object object)Return all interfaces that the given object implements as array, including ones implemented by superclasses. |
static List | getAllInterfacesAsList(Object object)Return all interfaces that the given object implements as List, including ones implemented by superclasses. |
static Method | getMostSpecificMethod(Method method, Class targetClass)Given a method, which may come from an interface, and a targetClass used in the current AOP invocation, find the most specific method if there is one. |
static boolean | isAopProxy(Object o) |
static boolean | isCglibProxy(Object o) |
static boolean | isJdkDynamicProxy(Object o) |
static boolean | methodIsOnOneOfTheseInterfaces(Method m, Class[] interfaces)Is the given method declared on one of these interfaces? |
static Class[] | toInterfaceArray(String[] interfaceNames)Convenience method to convert a string array of interface names to a class array. |
| Method Detail |
public static boolean canApply(Pointcut pc, Class targetClass, Class[] proxyInterfaces)
public static boolean canApply(Advisor advisor, Class targetClass, Class[] proxyInterfaces)
public static Class[] getAllInterfaces(Object object)
public static List getAllInterfacesAsList(Object object)
public static Method getMostSpecificMethod(Method method, Class targetClass)
public static boolean isAopProxy(Object o)
public static boolean isCglibProxy(Object o)
public static boolean isJdkDynamicProxy(Object o)
public static boolean methodIsOnOneOfTheseInterfaces(Method m, Class[] interfaces)
public static Class[] toInterfaceArray(String[] interfaceNames)
throws AspectException,
java.lang.ClassNotFoundException
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||