Example usage for Java org.springframework.aop.framework ProxyFactory fields, constructors, methods, implement or subclass
The text is from its open source code.
ProxyFactory() Create a new ProxyFactory. | |
ProxyFactory(Class> proxyInterface, Interceptor interceptor) Create a new ProxyFactory for the given interface and interceptor. | |
ProxyFactory(Class> proxyInterface, TargetSource targetSource) Create a ProxyFactory for the specified TargetSource , making the proxy implement the specified interface. | |
ProxyFactory(Object target) Create a new ProxyFactory. | |
ProxyFactory(Class>... proxyInterfaces) Create a new ProxyFactory. |
void | addAdvice(Advice advice) |
void | addAdvice(int pos, Advice advice) Cannot add introductions this way unless the advice implements IntroductionInfo. |
void | addAdvisor(Advisor advisor) |
void | addAdvisor(int pos, Advisor advisor) |
void | addAdvisors(Advisor... advisors) Add all of the given advisors to this proxy configuration. |
void | addInterface(Class> intf) Add a new proxied interface. |
void | copyFrom(ProxyConfig other) Copy configuration from the other config object. |
Advisor[] | getAdvisors() |
Class> | getClass() Returns the runtime class of this Object . |
Object | getProxy() Create a new proxy according to the settings in this factory. |
Object | getProxy(@Nullable ClassLoader classLoader) Create a new proxy according to the settings in this factory. |
Object | getProxy(TargetSource targetSource) Create a proxy for the specified TargetSource that extends the target class of the TargetSource . |
T | getProxy(Class Create a new proxy for the given interface and interceptor. |
T | getProxy(Class Create a proxy for the specified TargetSource , implementing the specified interface. |
boolean | isProxyTargetClass() Return whether to proxy the target class directly as well as any interfaces. |
boolean | removeAdvisor(Advisor advisor) |
void | setExposeProxy(boolean exposeProxy) Set whether the proxy should be exposed by the AOP framework as a ThreadLocal for retrieval via the AopContext class. |
void | setFrozen(boolean frozen) Set whether this config should be frozen. |
void | setInterfaces(Class>... interfaces) Set the interfaces to be proxied. |
void | setOpaque(boolean opaque) Set whether proxies created by this configuration should be prevented from being cast to Advised to query proxy status. |
void | setOptimize(boolean optimize) Set whether proxies should perform aggressive optimizations. |
void | setPreFiltered(boolean preFiltered) |
void | setProxyTargetClass(boolean proxyTargetClass) Set whether to proxy the target class directly, instead of just proxying specific interfaces. |
void | setTarget(Object target) Set the given object as target. |
void | setTargetClass(@Nullable Class> targetClass) Set a target class to be proxied, indicating that the proxy should be castable to the given class. |
void | setTargetSource(@Nullable TargetSource targetSource) |