public class ProxyCreatorSupport extends AdvisedSupport
createAopProxy()
,
Serialized FormEMPTY_TARGET_SOURCE
Constructor and Description |
---|
ProxyCreatorSupport()
Create a new ProxyCreatorSupport instance.
|
ProxyCreatorSupport(AopProxyFactory aopProxyFactory)
Create a new ProxyCreatorSupport instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(AdvisedSupportListener listener)
Add the given AdvisedSupportListener to this proxy configuration.
|
protected void |
adviceChanged()
Propagate advice change event to all AdvisedSupportListeners.
|
protected AopProxy |
createAopProxy()
Subclasses should call this to get a new AOP proxy.
|
AopProxyFactory |
getAopProxyFactory()
Return the AopProxyFactory that this ProxyConfig uses.
|
protected boolean |
isActive()
Subclasses can call this to check whether any AOP proxies have been created yet.
|
void |
removeListener(AdvisedSupportListener listener)
Remove the given AdvisedSupportListener from this proxy configuration.
|
void |
setAopProxyFactory(AopProxyFactory aopProxyFactory)
Customize the AopProxyFactory, allowing different strategies
to be dropped in without changing the core framework.
|
addAdvice, addAdvice, addAdvisor, addAdvisor, addAdvisors, addAdvisors, addInterface, adviceIncluded, copyConfigurationFrom, copyConfigurationFrom, countAdvicesOfType, getAdvisorChainFactory, getAdvisorCount, getAdvisors, getAdvisorsInternal, getInterceptorsAndDynamicInterceptionAdvice, getProxiedInterfaces, getTargetClass, getTargetSource, indexOf, indexOf, isInterfaceProxied, isPreFiltered, removeAdvice, removeAdvisor, removeAdvisor, removeInterface, replaceAdvisor, setAdvisorChainFactory, setInterfaces, setPreFiltered, setTarget, setTargetClass, setTargetSource, toProxyConfigString, toString
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isExposeProxy, isFrozen, isProxyTargetClass, setExposeProxy
public ProxyCreatorSupport()
public ProxyCreatorSupport(AopProxyFactory aopProxyFactory)
aopProxyFactory
- the AopProxyFactory to usepublic void setAopProxyFactory(AopProxyFactory aopProxyFactory)
Default is DefaultAopProxyFactory
, using dynamic JDK
proxies or CGLIB proxies based on the requirements.
public AopProxyFactory getAopProxyFactory()
public void addListener(AdvisedSupportListener listener)
listener
- the listener to registerpublic void removeListener(AdvisedSupportListener listener)
listener
- the listener to deregisterprotected final AopProxy createAopProxy()
this
as an argument.protected void adviceChanged()
adviceChanged
in class AdvisedSupport
AdvisedSupportListener.adviceChanged(org.springframework.aop.framework.AdvisedSupport)
protected final boolean isActive()