com.atlassian.confluence.util
Class AopUtils
java.lang.Object
com.atlassian.confluence.util.AopUtils
public abstract class AopUtils
- extends java.lang.Object
Utilities for aspect oriented programming
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 |
createAdvisedProxy(java.lang.Object target,
org.springframework.aop.Advisor advisor,
java.lang.Class 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 |
AopUtils
public AopUtils()
adaptInterface
public 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
- Parameters:
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
- Returns:
- The adapted object
createAdvisedProxy
public static java.lang.Object createAdvisedProxy(java.lang.Object target,
org.springframework.aop.Advisor advisor,
java.lang.Class advisedInterface)
- Convenience method for creating an advised proxy
- Parameters:
target
- Object to adviseadvisor
- Advisor to provide advice to method calls for the proxied objectadvisedInterface
- Interface to advise
- Returns:
- Proxied object
Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.