Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » aop » support » [javadoc | source]
org.springframework.aop.support
abstract public class: AbstractBeanFactoryPointcutAdvisor [javadoc | source]
java.lang.Object
   org.springframework.aop.support.AbstractPointcutAdvisor
      org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor

All Implemented Interfaces:
    BeanFactoryAware, Ordered, PointcutAdvisor, Serializable

Direct Known Subclasses:
    DefaultBeanFactoryPointcutAdvisor, BeanFactoryTransactionAttributeSourceAdvisor

Abstract BeanFactory-based PointcutAdvisor that allows for any Advice to be configured as reference to an Advice bean in a BeanFactory.

Specifying the name of an advice bean instead of the advice object itself (if running within a BeanFactory) increases loose coupling at initialization time, in order to not initialize the advice object until the pointcut actually matches.

Method from org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor Summary:
getAdvice,   getAdviceBeanName,   setAdviceBeanName,   setBeanFactory,   toString
Methods from org.springframework.aop.support.AbstractPointcutAdvisor:
equals,   getOrder,   hashCode,   isPerInstance,   setOrder
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor Detail:
 public Advice getAdvice() 
 public String getAdviceBeanName() 
    Return the name of the advice bean that this advisor refers to, if any.
 public  void setAdviceBeanName(String adviceBeanName) 
    Specify the name of the advice bean that this advisor should refer to.

    An instance of the specified bean will be obtained on first access of this advisor's advice. This advisor will only ever obtain at most one single instance of the advice bean, caching the instance for the lifetime of the advisor.

 public  void setBeanFactory(BeanFactory beanFactory) 
 public String toString()