Package org.springframework.aop.framework.autoproxy
@NonNullApi
@NonNullFields
package org.springframework.aop.framework.autoproxy
Bean post-processors for use in ApplicationContexts to simplify AOP usage
by automatically creating AOP proxies without the need to use a ProxyFactoryBean.
The various post-processors in this package need only be added to an ApplicationContext (typically in an XML bean definition document) to automatically proxy selected beans.
NB: Automatic auto-proxying is not supported for BeanFactory implementations, as post-processors beans are only automatically detected in application contexts. Post-processors can be explicitly registered on a ConfigurableBeanFactory instead.
-
ClassDescriptionGeneric auto proxy creator that builds AOP proxies for specific beans based on detected Advisors for each bean.
BeanPostProcessor
implementation that wraps each eligible bean with an AOP proxy, delegating to specified interceptors before invoking the bean itself.Extension ofAbstractAutoProxyCreator
which implementsBeanFactoryAware
, 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
).Utilities for auto-proxy aware components.Helper for retrieving standard Spring Advisors from a BeanFactory, for use with auto-proxying.Auto proxy creator that identifies beans to proxy via a list of names.BeanPostProcessor
implementation that creates AOP proxies based on all candidateAdvisor
s in the currentBeanFactory
.Auto-proxy creator that considers infrastructure Advisor beans only, ignoring any application-defined Advisors.Holder for the current proxy creation context, as exposed by auto-proxy creators such asAbstractAdvisorAutoProxyCreator
.Implementations can create special target sources, such as pooling target sources, for particular beans.