java.lang.Object | ||||
↳ | org.springframework.aop.framework.ProxyConfig | |||
↳ | org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator | |||
↳ | org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator | |||
↳ | org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator |
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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | SEPARATOR | Separator between prefix and remainder of bean name |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.core.Ordered
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the prefix for bean names that will cause them to be included
for auto-proxying by this object.
| |||||||||||
Return whether to exclude advisors with a certain prefix
in the bean name.
| |||||||||||
Set the prefix for bean names that will cause them to be included for
auto-proxying by this object.
| |||||||||||
Set the name of the bean in the bean factory that created this bean.
| |||||||||||
Set whether to exclude advisors with a certain prefix
in the bean name.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Consider Advisor beans with the specified prefix as eligible, if activated.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator
| |||||||||||
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.BeanNameAware
| |||||||||||
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
|
Separator between prefix and remainder of bean name
Return the prefix for bean names that will cause them to be included for auto-proxying by this object.
Return whether to exclude advisors with a certain prefix in the bean name.
Set the prefix for bean names that will cause them to be included for auto-proxying by this object. This prefix should be set to avoid circular references. Default value is the bean name of this object + a dot.
advisorBeanNamePrefix | the exclusion prefix |
---|
Set the name of the bean in the bean factory that created this bean.
Invoked after population of normal bean properties but before an
init callback such as afterPropertiesSet()
or a custom init-method.
name | the name of the bean in the factory. Note that this name is the actual bean name used in the factory, which may differ from the originally specified name: in particular for inner bean names, the actual bean name might have been made unique through appending "#..." suffixes. Use the BeanFactoryUtils#originalBeanName(String) method to extract the original bean name (without suffix), if desired. |
---|
Set whether to exclude advisors with a certain prefix in the bean name.
Consider Advisor beans with the specified prefix as eligible, if activated.
beanName | the name of the Advisor bean |
---|