Save This Page
Home » Spring-Framework-090522 » org.springframework » aop » aspectj » annotation » [javadoc | source]
org.springframework.aop.aspectj.annotation
public class: AnnotationAwareAspectJAutoProxyCreator [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.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator
               org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator

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

AspectJAwareAdvisorAutoProxyCreator subclass that processes all AspectJ annotation aspects in the current application context, as well as Spring Advisors.

Any AspectJ annotated classes will automatically be recognized, and their advice applied if Spring AOP's proxy-based model is capable of applying it. This covers method execution joinpoints.

If the <aop:include> element is used, only @AspectJ beans with names matched by an include pattern will be considered as defining aspects to use for Spring auto-proxying.

Processing of Spring Advisors follows the rules established in org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator .

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.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator Summary:
findCandidateAdvisors,   initBeanFactory,   isEligibleAspectBean,   isInfrastructureClass,   setAspectJAdvisorFactory,   setIncludePatterns
Methods from org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator:
extendAdvisors,   shouldSkip,   sortAdvisors
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:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator Detail:
 protected List findCandidateAdvisors() 
 protected  void initBeanFactory(ConfigurableListableBeanFactory beanFactory) 
 protected boolean isEligibleAspectBean(String beanName) 
    Check whether the given aspect bean is eligible for auto-proxying.

    If no <aop:include> elements were used then "includePatterns" will be null and all beans are included. If "includePatterns" is non-null, then one of the patterns must match.

 protected boolean isInfrastructureClass(Class beanClass) 
 public  void setAspectJAdvisorFactory(AspectJAdvisorFactory aspectJAdvisorFactory) 
 public  void setIncludePatterns(List<String> patterns) 
    Set a list of regex patterns, matching eligible @AspectJ bean names.

    Default is to consider all @AspectJ beans as eligible.