| org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator
DefaultAdvisorAutoProxyCreator | public class DefaultAdvisorAutoProxyCreator extends AbstractAdvisorAutoProxyCreator implements BeanNameAware(Code) | | 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.
author: Rod Johnson author: Rob Harrop |
Method Summary | |
public String | getAdvisorBeanNamePrefix() Return the prefix for bean names that will cause them to be included
for auto-proxying by this object. | protected boolean | isEligibleAdvisorBean(String beanName) Consider Advisor beans with the specified prefix as eligible, if activated. | public boolean | isUsePrefix() Return whether to exclude advisors with a certain prefix
in the bean name. | public void | setAdvisorBeanNamePrefix(String advisorBeanNamePrefix) Set the prefix for bean names that will cause them to be included for
auto-proxying by this object. | public void | setBeanName(String name) | public void | setUsePrefix(boolean usePrefix) Set whether to exclude advisors with a certain prefix
in the bean name. |
SEPARATOR | final public static String SEPARATOR(Code) | | Separator between prefix and remainder of bean name
|
getAdvisorBeanNamePrefix | public String getAdvisorBeanNamePrefix()(Code) | | Return the prefix for bean names that will cause them to be included
for auto-proxying by this object.
|
isUsePrefix | public boolean isUsePrefix()(Code) | | Return whether to exclude advisors with a certain prefix
in the bean name.
|
setAdvisorBeanNamePrefix | public void setAdvisorBeanNamePrefix(String advisorBeanNamePrefix)(Code) | | 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.
Parameters: advisorBeanNamePrefix - the exclusion prefix |
setUsePrefix | public void setUsePrefix(boolean usePrefix)(Code) | | Set whether to exclude advisors with a certain prefix
in the bean name.
|
Methods inherited from org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator | protected Advisor[] buildAdvisors(String beanName, Object[] specificInterceptors)(Code)(Java Doc) protected Object createProxy(Class beanClass, String beanName, Object[] specificInterceptors, TargetSource targetSource)(Code)(Java Doc) protected void customizeProxyFactory(ProxyFactory proxyFactory)(Code)(Java Doc) abstract protected Object[] getAdvicesAndAdvisorsForBean(Class beanClass, String beanName, TargetSource customTargetSource) throws BeansException(Code)(Java Doc) protected BeanFactory getBeanFactory()(Code)(Java Doc) protected Object getCacheKey(Class beanClass, String beanName)(Code)(Java Doc) protected TargetSource getCustomTargetSource(Class beanClass, String beanName)(Code)(Java Doc) final public int getOrder()(Code)(Java Doc) public boolean isFrozen()(Code)(Java Doc) protected boolean isInfrastructureClass(Class beanClass, String beanName)(Code)(Java Doc) protected boolean isInfrastructureClass(Class beanClass)(Code)(Java Doc) public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException(Code)(Java Doc) public boolean postProcessAfterInstantiation(Object bean, String beanName)(Code)(Java Doc) public Object postProcessBeforeInitialization(Object bean, String beanName)(Code)(Java Doc) public Object postProcessBeforeInstantiation(Class beanClass, String beanName) throws BeansException(Code)(Java Doc) public PropertyValues postProcessPropertyValues(PropertyValues pvs, PropertyDescriptor[] pds, Object bean, String beanName)(Code)(Java Doc) public void setAdvisorAdapterRegistry(AdvisorAdapterRegistry advisorAdapterRegistry)(Code)(Java Doc) public void setApplyCommonInterceptorsFirst(boolean applyCommonInterceptorsFirst)(Code)(Java Doc) public void setBeanClassLoader(ClassLoader classLoader)(Code)(Java Doc) public void setBeanFactory(BeanFactory beanFactory)(Code)(Java Doc) public void setCustomTargetSourceCreators(TargetSourceCreator[] targetSourceCreators)(Code)(Java Doc) public void setFrozen(boolean frozen)(Code)(Java Doc) public void setInterceptorNames(String[] interceptorNames)(Code)(Java Doc) final public void setOrder(int order)(Code)(Java Doc) protected boolean shouldProxyTargetClass(Class beanClass, String beanName)(Code)(Java Doc) protected boolean shouldSkip(Class beanClass, String beanName)(Code)(Java Doc)
|
|
|