Top Description Fields Constructors Methods
org.springframework.aop.framework

public Class ProxyCreatorSupport

extends AdvisedSupport
Class Inheritance
Known Direct Subclasses
org.springframework.aop.framework.ProxyFactory, org.springframework.aop.framework.ProxyFactoryBean, org.springframework.aop.aspectj.annotation.AspectJProxyFactory
Annotations
@SuppressWarnings:serial
Imports
java.util.ArrayList, .List, org.springframework.util.Assert

Base class for proxy factories. Provides convenient access to a configurable AopProxyFactory.
Author
Juergen Hoeller
Since
2.0.3
See Also
createAopProxy()

Field Summary

Modifier and TypeField and Description
private boolean
active

Set to true when the first AOP proxy has been created.

private AopProxyFactory
private final List<AdvisedSupportListener>
Inherited from org.springframework.aop.framework.AdvisedSupport:
EMPTY_TARGET_SOURCEproxyMetadataCachetargetSource

Constructor Summary

AccessConstructor and Description
public
ProxyCreatorSupport()

Create a new ProxyCreatorSupport instance.

public
ProxyCreatorSupport(AopProxyFactory
the AopProxyFactory to use
aopProxyFactory
)

Create a new ProxyCreatorSupport instance.

Method Summary

Modifier and TypeMethod and Description
private void
activate()

Activate this proxy configuration.

public void
addListener(AdvisedSupportListener
the listener to register
listener
)

Add the given AdvisedSupportListener to this proxy configuration.

protected void
adviceChanged()

Overrides org.springframework.aop.framework.AdvisedSupport.adviceChanged.

Propagate advice change event to all AdvisedSupportListeners.

protected final synchronized AopProxy
createAopProxy()

Subclasses should call this to get a new AOP proxy.

public AopProxyFactory
getAopProxyFactory()

Return the AopProxyFactory that this ProxyConfig uses.

protected final synchronized boolean
isActive()

Subclasses can call this to check whether any AOP proxies have been created yet.

public void
removeListener(AdvisedSupportListener
the listener to remove
listener
)

Remove the given AdvisedSupportListener from this proxy configuration.

public void
setAopProxyFactory(AopProxyFactory aopProxyFactory)

Customize the AopProxyFactory, allowing different strategies to be dropped in without changing the core framework.

Inherited from org.springframework.aop.framework.AdvisedSupport:
addAdviceaddAdviceaddAdvisoraddAdvisoraddAdvisorsaddAdvisorsaddInterfaceadviceIncludedcopyConfigurationFromcopyConfigurationFromcountAdvicesOfTypegetAdvisorChainFactorygetAdvisorCountgetAdvisorKeygetAdvisorsgetAdvisorsInternalgetConfigurationOnlyCopygetInterceptorsAndDynamicInterceptionAdvicegetProxiedInterfacesgetTargetClassgetTargetSourceindexOfindexOfisInterfaceProxiedisPreFilteredreduceToAdvisorKeyremoveAdviceremoveAdvisorremoveAdvisorremoveInterfacereplaceAdvisorsetAdvisorChainFactorysetInterfacessetPreFilteredsetTargetsetTargetClasssetTargetSourcetoProxyConfigStringtoString

Field Detail

activeback to summary
private boolean active

Set to true when the first AOP proxy has been created.

aopProxyFactoryback to summary
private AopProxyFactory aopProxyFactory
listenersback to summary
private final List<AdvisedSupportListener> listeners

Constructor Detail

ProxyCreatorSupportback to summary
public ProxyCreatorSupport()

Create a new ProxyCreatorSupport instance.

ProxyCreatorSupportback to summary
public ProxyCreatorSupport(AopProxyFactory aopProxyFactory)

Create a new ProxyCreatorSupport instance.

Parameters
aopProxyFactory:AopProxyFactory

the AopProxyFactory to use

Method Detail

activateback to summary
private void activate()

Activate this proxy configuration.

See Also
AdvisedSupportListener#activated
addListenerback to summary
public void addListener(AdvisedSupportListener listener)

Add the given AdvisedSupportListener to this proxy configuration.

Parameters
listener:AdvisedSupportListener

the listener to register

adviceChangedback to summary
protected void adviceChanged()

Overrides org.springframework.aop.framework.AdvisedSupport.adviceChanged.

Propagate advice change event to all AdvisedSupportListeners.

Annotations
@Override
See Also
AdvisedSupportListener#adviceChanged
createAopProxyback to summary
protected final synchronized AopProxy createAopProxy()

Subclasses should call this to get a new AOP proxy. They should not create an AOP proxy with this as an argument.

getAopProxyFactoryback to summary
public AopProxyFactory getAopProxyFactory()

Return the AopProxyFactory that this ProxyConfig uses.

isActiveback to summary
protected final synchronized boolean isActive()

Subclasses can call this to check whether any AOP proxies have been created yet.

removeListenerback to summary
public void removeListener(AdvisedSupportListener listener)

Remove the given AdvisedSupportListener from this proxy configuration.

Parameters
listener:AdvisedSupportListener

the listener to remove

setAopProxyFactoryback to summary
public void setAopProxyFactory(AopProxyFactory aopProxyFactory)

Customize the AopProxyFactory, allowing different strategies to be dropped in without changing the core framework.

Default is DefaultAopProxyFactory, using dynamic JDK proxies or CGLIB proxies based on the requirements.