Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » aop » framework » autoproxy » [javadoc | source]
org.springframework.aop.framework.autoproxy
public class: DefaultAdvisorAutoProxyCreator [javadoc | source]
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

All Implemented Interfaces:
    BeanNameAware, Ordered, BeanClassLoaderAware, AopInfrastructureBean, SmartInstantiationAwareBeanPostProcessor, BeanFactoryAware, Serializable

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.

Field Summary
public static final  String SEPARATOR    Separator between prefix and remainder of bean name 
Fields inherited from org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator:
DO_NOT_PROXY,  PROXY_WITHOUT_ADDITIONAL_INTERCEPTORS,  logger
Fields inherited from org.springframework.aop.framework.ProxyConfig:
opaque,  exposeProxy
Method from org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator Summary:
getAdvisorBeanNamePrefix,   isEligibleAdvisorBean,   isUsePrefix,   setAdvisorBeanNamePrefix,   setBeanName,   setUsePrefix
Methods from org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator:
advisorsPreFiltered,   extendAdvisors,   findAdvisorsThatCanApply,   findCandidateAdvisors,   findEligibleAdvisors,   getAdvicesAndAdvisorsForBean,   initBeanFactory,   isEligibleAdvisorBean,   setBeanFactory,   sortAdvisors
Methods from org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator:
advisorsPreFiltered,   buildAdvisors,   createProxy,   customizeProxyFactory,   determineCandidateConstructors,   getAdvicesAndAdvisorsForBean,   getBeanFactory,   getCacheKey,   getCustomTargetSource,   getEarlyBeanReference,   getOrder,   isFrozen,   isInfrastructureClass,   isInfrastructureClass,   postProcessAfterInitialization,   postProcessAfterInstantiation,   postProcessBeforeInitialization,   postProcessBeforeInstantiation,   postProcessPropertyValues,   predictBeanType,   setAdvisorAdapterRegistry,   setApplyCommonInterceptorsFirst,   setBeanClassLoader,   setBeanFactory,   setCustomTargetSourceCreators,   setFrozen,   setInterceptorNames,   setOrder,   setProxyClassLoader,   shouldProxyTargetClass,   shouldSkip,   wrapIfNecessary
Methods from org.springframework.aop.framework.ProxyConfig:
copyFrom,   isExposeProxy,   isFrozen,   isOpaque,   isOptimize,   isProxyTargetClass,   setExposeProxy,   setFrozen,   setOpaque,   setOptimize,   setProxyTargetClass,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator Detail:
 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. This prefix should be set to avoid circular references. Default value is the bean name of this object + a dot.
 public  void setBeanName(String name) 
 public  void setUsePrefix(boolean usePrefix) 
    Set whether to exclude advisors with a certain prefix in the bean name.