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.
|
Java Source File Name | Type | Comment |
AbstractAdvisorAutoProxyCreator.java | Class | Generic auto proxy creator that builds AOP proxies for specific beans
based on detected Advisors for each bean.
Subclasses must implement the abstract
AbstractAdvisorAutoProxyCreator.findCandidateAdvisors() method to return a list of Advisors applying to any object. |
AbstractAutoProxyCreator.java | Class | org.springframework.beans.factory.config.BeanPostProcessor implementation
that wraps each eligible bean with an AOP proxy, delegating to specified interceptors
before invoking the bean itself.
This class distinguishes between "common" interceptors: shared for all proxies it
creates, and "specific" interceptors: unique per bean instance. |
AutoProxyUtils.java | Class | Utilities for auto-proxy aware components. |
BeanFactoryAdvisorRetrievalHelper.java | Class | Helper for retrieving standard Spring Advisors from a BeanFactory,
for use with auto-proxying. |
BeanNameAutoProxyCreator.java | Class | 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. |
DefaultAdvisorAutoProxyCreator.java | Class | BeanPostProcessor implementation that creates AOP proxies based on all candidate
Advisors in the current BeanFactory. |
TargetSourceCreator.java | Interface | Implementations can create special target sources, such as pooling target
sources, for particular beans. |