|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.util.AopUtils
public abstract class AopUtils
Utilities for aspect oriented programming
Constructor Summary | |
---|---|
AopUtils()
|
Method Summary | ||
---|---|---|
static java.lang.Object |
adaptInterface(java.lang.Object target,
java.lang.Class newInterface,
java.lang.Class oldInterface,
java.lang.Object delegate)
Adapt an interface of an object via a delegate |
|
static java.lang.Object |
createAdvisedDynamicProxy(java.lang.Object target,
org.springframework.aop.Advisor advisor)
Convenience method for creating an advised proxy, the proxy will implement all interfaces present on the target |
|
static
|
createAdvisedProxy(java.lang.Object target,
org.springframework.aop.Advisor advisor,
java.lang.Class<T> advisedInterface)
Convenience method for creating an advised proxy |
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 java.lang.Object adaptInterface(java.lang.Object target, java.lang.Class newInterface, java.lang.Class oldInterface, java.lang.Object delegate)
target
- Object to adaptnewInterface
- The new interface to implementoldInterface
- The old interface to removedelegate
- A delegate object - this object will intercept all calls made on the newInterface of the target object
public static <T> T createAdvisedProxy(java.lang.Object target, org.springframework.aop.Advisor advisor, java.lang.Class<T> advisedInterface)
target
- Object to adviseadvisor
- Advisor to provide advice to method calls for the proxied objectadvisedInterface
- Interface to advise
public static java.lang.Object createAdvisedDynamicProxy(java.lang.Object target, org.springframework.aop.Advisor advisor)
target
- object to advise, must implement at least one interfaceadvisor
- Advisor to provide advice to method calls for the proxied object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |