java.lang.Object | |||
↳ | org.springframework.aop.framework.ProxyConfig | ||
↳ | org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator | ||
↳ | org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator |
Known Direct Subclasses |
Known Indirect Subclasses |
Generic auto proxy creator that builds AOP proxies for specific beans based on detected Advisors for each bean.
Subclasses must implement the abstract findCandidateAdvisors()
method to return a list of Advisors applying to any object. Subclasses can
also override the inherited shouldSkip(Class>, String)
method to exclude certain
objects from auto-proxying.
Advisors or advices requiring ordering should implement the
Ordered
interface. This class sorts
Advisors by Ordered order value. Advisors that don't implement the
Ordered interface will be considered as unordered; they will appear
at the end of the advisor chain in undefined order.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.core.Ordered
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Callback that supplies the owning factory to a bean instance.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This auto-proxy creator always returns pre-filtered Advisors.
| |||||||||||
Extension hook that subclasses can override to register additional Advisors,
given the sorted Advisors obtained to date.
| |||||||||||
Search the given candidate Advisors to find all Advisors that
can apply to the specified bean.
| |||||||||||
Find all candidate Advisors to use in auto-proxying.
| |||||||||||
Find all eligible Advisors for auto-proxying this class.
| |||||||||||
Return whether the given bean is to be proxied, what additional
advices (e.g.
| |||||||||||
Return whether the Advisor bean with the given name is eligible
for proxying in the first place.
| |||||||||||
Sort advisors based on ordering.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
| |||||||||||
From class
org.springframework.aop.framework.ProxyConfig
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.BeanClassLoaderAware
| |||||||||||
From interface
org.springframework.beans.factory.BeanFactoryAware
| |||||||||||
From interface
org.springframework.beans.factory.config.BeanPostProcessor
| |||||||||||
From interface
org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
| |||||||||||
From interface
org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor
| |||||||||||
From interface
org.springframework.core.Ordered
|
Callback that supplies the owning factory to a bean instance.
Invoked after the population of normal bean properties
but before an initialization callback such as
afterPropertiesSet()
or a custom init-method.
beanFactory | owning BeanFactory (never null ).
The bean can immediately call methods on the factory. |
---|
This auto-proxy creator always returns pre-filtered Advisors.
Extension hook that subclasses can override to register additional Advisors, given the sorted Advisors obtained to date.
The default implementation is empty.
Typically used to add Advisors that expose contextual information required by some of the later advisors.
candidateAdvisors | Advisors that have already been identified as applying to a given bean |
---|
Search the given candidate Advisors to find all Advisors that can apply to the specified bean.
candidateAdvisors | the candidate Advisors |
---|---|
beanClass | the target's bean class |
beanName | the target's bean name |
Find all candidate Advisors to use in auto-proxying.
Find all eligible Advisors for auto-proxying this class.
beanClass | the clazz to find advisors for |
---|---|
beanName | the name of the currently proxied bean |
null
,
if there are no pointcuts or interceptorsReturn whether the given bean is to be proxied, what additional advices (e.g. AOP Alliance interceptors) and advisors to apply.
beanClass | the class of the bean to advise |
---|---|
beanName | the name of the bean |
targetSource | the TargetSource returned by the
getCustomTargetSource(Class>, String) method: may be ignored.
Will be null if no custom target source is in use. |
null
if no proxy at all, not even with the common interceptors.
See constants DO_NOT_PROXY and PROXY_WITHOUT_ADDITIONAL_INTERCEPTORS.Return whether the Advisor bean with the given name is eligible for proxying in the first place.
beanName | the name of the Advisor bean |
---|
Sort advisors based on ordering. Subclasses may choose to override this method to customize the sorting strategy.
advisors | the source List of Advisors |
---|