spring-framework / org.springframework.aop.framework.autoproxy

Package org.springframework.aop.framework.autoproxy

Types

AbstractBeanFactoryAwareAdvisingPostProcessor

abstract class AbstractBeanFactoryAwareAdvisingPostProcessor : AbstractAdvisingBeanPostProcessor, BeanFactoryAware

Extension of AbstractAutoProxyCreator which implements BeanFactoryAware, adds exposure of the original target class for each proxied bean (AutoProxyUtils#ORIGINAL_TARGET_CLASS_ATTRIBUTE), and participates in an externally enforced target-class mode for any given bean (AutoProxyUtils#PRESERVE_TARGET_CLASS_ATTRIBUTE). This post-processor is therefore aligned with AbstractAutoProxyCreator.

BeanNameAutoProxyCreator

open class BeanNameAutoProxyCreator : AbstractAutoProxyCreator

Auto proxy creator that identifies beans to proxy via a list of names. Checks for direct, "xxx*", and "*xxx" matches.

For configuration details, see the javadoc of the parent class AbstractAutoProxyCreator. Typically, you will specify a list of interceptor names to apply to all identified beans, via the "interceptorNames" property.

DefaultAdvisorAutoProxyCreator

open class DefaultAdvisorAutoProxyCreator : AbstractAdvisorAutoProxyCreator, BeanNameAware

BeanPostProcessor implementation that creates AOP proxies based on all candidate Advisors in the current BeanFactory. This class is completely generic; it contains no special code to handle any particular aspects, such as pooling aspects.

It's possible to filter out advisors - for example, to use multiple post processors of this type in the same factory - by setting the usePrefix property to true, in which case only advisors beginning with the DefaultAdvisorAutoProxyCreator's bean name followed by a dot (like "aapc.") will be used. This default prefix can be changed from the bean name by setting the advisorBeanNamePrefix property. The separator (.) will also be used in this case.

InfrastructureAdvisorAutoProxyCreator

open class InfrastructureAdvisorAutoProxyCreator : AbstractAdvisorAutoProxyCreator

Auto-proxy creator that considers infrastructure Advisor beans only, ignoring any application-defined Advisors.

ProxyCreationContext

open class ProxyCreationContext

Holder for the current proxy creation context, as exposed by auto-proxy creators such as AbstractAdvisorAutoProxyCreator.