|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.aop.framework.ProxyConfig
org.springframework.aop.framework.AdvisedSupport
org.springframework.aop.framework.ProxyFactory
Factory for AOP proxies for programmatic use, rather than via a bean factory. This class provides a simple way of obtaining and configuring AOP proxies in code.
Field Summary |
Fields inherited from class org.springframework.aop.framework.AdvisedSupport |
advisorChainFactory, EMPTY_TARGET_SOURCE, targetSource |
Fields inherited from class org.springframework.aop.framework.ProxyConfig |
exposeProxy, logger |
Constructor Summary | |
ProxyFactory()
Create a new ProxyFactory. |
|
ProxyFactory(java.lang.Class[] interfaces)
Create a new ProxyFactory. |
|
ProxyFactory(java.lang.Object target)
Create a new ProxyFactory. |
Method Summary | |
java.lang.Object |
getProxy()
Create new proxy according to the settings in this factory. |
static java.lang.Object |
getProxy(java.lang.Class proxyInterface,
org.aopalliance.intercept.Interceptor interceptor)
Create a new proxy for the given interface and interceptor. |
Methods inherited from class org.springframework.aop.framework.ProxyConfig |
copyFrom, getAopProxyFactory, getExposeProxy, getOpaque, getOptimize, getProxyTargetClass, isFrozen, setAopProxyFactory, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.springframework.aop.framework.Advised |
getExposeProxy, getProxyTargetClass, isFrozen |
Constructor Detail |
public ProxyFactory()
public ProxyFactory(java.lang.Object target) throws AopConfigException
public ProxyFactory(java.lang.Class[] interfaces)
Method Detail |
public java.lang.Object getProxy()
public static java.lang.Object getProxy(java.lang.Class proxyInterface, org.aopalliance.intercept.Interceptor interceptor)
Convenience method for creating a proxy for a single interceptor, assuming that the interceptor handles all calls itself rather than delegating to a target, like in the case of remoting proxies.
proxyInterface
- the interface that the proxy should implementinterceptor
- the interceptor that the proxy should invoke
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |