public class

ProxyCreatorSupport

extends AdvisedSupport
java.lang.Object
   ↳ org.springframework.aop.framework.ProxyConfig
     ↳ org.springframework.aop.framework.AdvisedSupport
       ↳ org.springframework.aop.framework.ProxyCreatorSupport
Known Direct Subclasses

Class Overview

Base class for proxy factories. Provides convenient access to a configurable AopProxyFactory.

See Also

Summary

[Expand]
Inherited Fields
From class org.springframework.aop.framework.AdvisedSupport
Public Constructors
ProxyCreatorSupport()
Create a new ProxyCreatorSupport instance.
ProxyCreatorSupport(AopProxyFactory aopProxyFactory)
Create a new ProxyCreatorSupport instance.
Public Methods
void addListener(AdvisedSupportListener listener)
Add the given AdvisedSupportListener to this proxy configuration.
AopProxyFactory getAopProxyFactory()
Return the AopProxyFactory that this ProxyConfig uses.
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.
Protected Methods
void adviceChanged()
Propagate advice change event to all AdvisedSupportListeners.
synchronized final AopProxy createAopProxy()
Subclasses should call this to get a new AOP proxy.
synchronized final boolean isActive()
Subclasses can call this to check whether any AOP proxies have been created yet.
[Expand]
Inherited Methods
From class org.springframework.aop.framework.AdvisedSupport
From class org.springframework.aop.framework.ProxyConfig
From class java.lang.Object
From interface org.springframework.aop.TargetClassAware
From interface org.springframework.aop.framework.Advised

Public Constructors

public ProxyCreatorSupport ()

Create a new ProxyCreatorSupport instance.

public ProxyCreatorSupport (AopProxyFactory aopProxyFactory)

Create a new ProxyCreatorSupport instance.

Parameters
aopProxyFactory the AopProxyFactory to use

Public Methods

public void addListener (AdvisedSupportListener listener)

Add the given AdvisedSupportListener to this proxy configuration.

Parameters
listener the listener to register

public AopProxyFactory getAopProxyFactory ()

Return the AopProxyFactory that this ProxyConfig uses.

public void removeListener (AdvisedSupportListener listener)

Remove the given AdvisedSupportListener from this proxy configuration.

Parameters
listener the listener to deregister

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.

Protected Methods

protected void adviceChanged ()

Propagate advice change event to all AdvisedSupportListeners.

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.

protected final synchronized boolean isActive ()

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