|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.springframework.aop.support.AopUtils
Utility methods used by the AOP framework. Not intended to be used directly by applications.
| Constructor Summary | |
AopUtils()
|
|
| Method Summary | |
static boolean |
canApply(Advisor advisor,
java.lang.Class targetClass,
java.lang.Class[] proxyInterfaces)
|
static boolean |
canApply(Pointcut pc,
java.lang.Class targetClass,
java.lang.Class[] proxyInterfaces)
Can the given pointcut apply at all on the given class? |
static java.lang.Class[] |
getAllInterfaces(java.lang.Object object)
Return all interfaces that the given object implements as array, including ones implemented by superclasses. |
static java.util.List |
getAllInterfacesAsList(java.lang.Object object)
Return all interfaces that the given object implements as List, including ones implemented by superclasses. |
static java.lang.reflect.Method |
getMostSpecificMethod(java.lang.reflect.Method method,
java.lang.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(java.lang.Object o)
|
static boolean |
isCglibProxy(java.lang.Object o)
|
static boolean |
isJdkDynamicProxy(java.lang.Object o)
|
static boolean |
methodIsOnOneOfTheseInterfaces(java.lang.reflect.Method m,
java.lang.Class[] interfaces)
Is the given method declared on one of these interfaces? |
static java.lang.Class[] |
toInterfaceArray(java.lang.String[] interfaceNames)
Convenience method to convert a string array of interface names to a class array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AopUtils()
| Method Detail |
public static boolean isCglibProxy(java.lang.Object o)
public static boolean isJdkDynamicProxy(java.lang.Object o)
public static boolean isAopProxy(java.lang.Object o)
public static java.lang.reflect.Method getMostSpecificMethod(java.lang.reflect.Method method,
java.lang.Class targetClass)
method - method to be invoked, which may come from an interfacetargetClass - target class for the curren invocation. May
be null or may not even implement the method.
public static java.lang.Class[] toInterfaceArray(java.lang.String[] interfaceNames)
throws java.lang.IllegalArgumentException,
java.lang.ClassNotFoundException
java.lang.ClassNotFoundException - if any of the classes can't be loaded
org.aopalliance.aop.AspectException - if any of the classes is not an interface
java.lang.IllegalArgumentExceptionpublic static java.lang.Class[] getAllInterfaces(java.lang.Object object)
object - the object to analyse for interfaces
public static java.util.List getAllInterfacesAsList(java.lang.Object object)
object - the object to analyse for interfaces
public static boolean methodIsOnOneOfTheseInterfaces(java.lang.reflect.Method m,
java.lang.Class[] interfaces)
m - method to checkinterfaces - array of interfaces we want to check
public static boolean canApply(Pointcut pc,
java.lang.Class targetClass,
java.lang.Class[] proxyInterfaces)
pc - pc static or dynamic pointcuttargetClass - class we're testingproxyInterfaces - proxy interfaces. If null, all methods
on class may be proxied
public static boolean canApply(Advisor advisor,
java.lang.Class targetClass,
java.lang.Class[] proxyInterfaces)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||