public class DefaultBeanFactoryPointcutAdvisor extends AbstractBeanFactoryPointcutAdvisor
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.
setPointcut(org.springframework.aop.Pointcut)
,
AbstractBeanFactoryPointcutAdvisor.setAdviceBeanName(java.lang.String)
,
Serialized FormHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
DefaultBeanFactoryPointcutAdvisor() |
Modifier and Type | Method and Description |
---|---|
Pointcut |
getPointcut()
Get the Pointcut that drives this advisor.
|
void |
setPointcut(Pointcut pointcut)
Specify the pointcut targeting the advice.
|
String |
toString() |
getAdvice, getAdviceBeanName, setAdvice, setAdviceBeanName, setBeanFactory
equals, getOrder, hashCode, isPerInstance, setOrder
public void setPointcut(Pointcut pointcut)
Default is Pointcut.TRUE
.
public Pointcut getPointcut()
PointcutAdvisor
public String toString()
toString
in class AbstractBeanFactoryPointcutAdvisor