类 DefaultBeanFactoryPointcutAdvisor
- java.lang.Object
- org.springframework.aop.support.AbstractPointcutAdvisor
- org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor
- org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor
- 所有已实现的接口:
Serializable,Advisor,PointcutAdvisor,Aware,BeanFactoryAware,Ordered
public class DefaultBeanFactoryPointcutAdvisor extends AbstractBeanFactoryPointcutAdvisor
Concrete BeanFactory-based PointcutAdvisor that allows for any Advice to be configured as reference to an Advice bean in the BeanFactory, as well as the Pointcut to be configured through a bean property.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.
- 从以下版本开始:
- 2.0.2
- 作者:
- Juergen Hoeller
- 另请参阅:
setPointcut(org.springframework.aop.Pointcut),AbstractBeanFactoryPointcutAdvisor.setAdviceBeanName(java.lang.String), 序列化表格
字段概要
从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
构造器概要
构造器 构造器 说明 DefaultBeanFactoryPointcutAdvisor()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 PointcutgetPointcut()Get the Pointcut that drives this advisor.voidsetPointcut(Pointcut pointcut)Specify the pointcut targeting the advice.StringtoString()从类继承的方法 org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor
getAdvice, getAdviceBeanName, setAdvice, setAdviceBeanName, setBeanFactory
从类继承的方法 org.springframework.aop.support.AbstractPointcutAdvisor
equals, getOrder, hashCode, isPerInstance, setOrder
构造器详细资料
DefaultBeanFactoryPointcutAdvisor
public DefaultBeanFactoryPointcutAdvisor()
方法详细资料
setPointcut
public void setPointcut(Pointcut pointcut)
Specify the pointcut targeting the advice.Default is
Pointcut.TRUE.
getPointcut
public Pointcut getPointcut()
从接口复制的说明:PointcutAdvisorGet the Pointcut that drives this advisor.