|
|||||||||
| 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.ProxyCreatorSupport
public class ProxyCreatorSupport
Base class for proxy factories. Provides convenient access to a configurable AopProxyFactory.
createAopProxy(),
Serialized Form| Field Summary | |
|---|---|
private boolean |
active
Set to true when the first AOP proxy has been created |
private AopProxyFactory |
aopProxyFactory
|
private java.util.List<AdvisedSupportListener> |
listeners
|
| Fields inherited from class org.springframework.aop.framework.AdvisedSupport |
|---|
advisorChainFactory, EMPTY_TARGET_SOURCE, targetSource |
| Fields inherited from class org.springframework.aop.framework.ProxyConfig |
|---|
exposeProxy, opaque |
| Constructor Summary | |
|---|---|
ProxyCreatorSupport()
Create a new ProxyCreatorSupport instance. |
|
ProxyCreatorSupport(AopProxyFactory aopProxyFactory)
Create a new ProxyCreatorSupport instance. |
|
| Method Summary | |
|---|---|
private void |
activate()
Activate this proxy configuration. |
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. |
| Methods inherited from class org.springframework.aop.framework.ProxyConfig |
|---|
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, 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 |
|---|
isExposeProxy, isFrozen, isProxyTargetClass, setExposeProxy |
| Field Detail |
|---|
private AopProxyFactory aopProxyFactory
private java.util.List<AdvisedSupportListener> listeners
private boolean active
| Constructor Detail |
|---|
public ProxyCreatorSupport()
public ProxyCreatorSupport(AopProxyFactory aopProxyFactory)
aopProxyFactory - the AopProxyFactory to use| Method Detail |
|---|
public 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.
private void activate()
AdvisedSupportListener.activated(org.springframework.aop.framework.AdvisedSupport)protected void adviceChanged()
adviceChanged in class AdvisedSupportAdvisedSupportListener.adviceChanged(org.springframework.aop.framework.AdvisedSupport)protected final boolean isActive()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||