public abstract class AopUtils extends Object
| Constructor and Description |
|---|
AopUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
adaptInterface(Object target,
Class newInterface,
Class oldInterface,
Object delegate)
Adapt an interface of an object via a delegate
|
static Object |
createAdvisedDynamicProxy(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 <T> T |
createAdvisedProxy(Object target,
org.springframework.aop.Advisor advisor,
Class<T> advisedInterface)
Convenience method for creating an advised proxy
|
static <T> T |
createAdvisedProxy(Object target,
Class<T> advisedInterface,
org.springframework.aop.Advisor... advisors)
Convenience method for creating an advised proxy
|
static <T> T |
createAdvisedProxy(Object target,
Class<T> advisedInterface,
List<org.springframework.aop.Advisor> advisors)
Convenience method for creating an advised proxy
|
public static Object adaptInterface(Object target, Class newInterface, Class oldInterface, 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 objectpublic static <T> T createAdvisedProxy(Object target, org.springframework.aop.Advisor advisor, Class<T> advisedInterface)
target - Object to adviseadvisor - Advisor to provide advice to method calls for the proxied objectadvisedInterface - Interface to advisepublic static <T> T createAdvisedProxy(Object target, Class<T> advisedInterface, org.springframework.aop.Advisor... advisors)
target - Object to adviseadvisedInterface - Interface to adviseadvisors - Advisor list to provide advice to method calls for the proxied objectpublic static <T> T createAdvisedProxy(Object target, Class<T> advisedInterface, List<org.springframework.aop.Advisor> advisors)
target - Object to adviseadvisedInterface - Interface to adviseadvisors - Advisor list to provide advice to method calls for the proxied objectpublic static Object createAdvisedDynamicProxy(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 objectCopyright © 2003–2023 Atlassian. All rights reserved.