- All Implemented Interfaces:
- Direct Known Subclasses:
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 SummaryModifier and TypeMethodDescriptionReturn the advice part of this aspect.Return the name of the advice bean that this advisor refers to, if any.
voidSpecify a particular instance of the target advice directly, avoiding lazy resolution in
voidSpecify the name of the advice bean that this advisor should refer to.
voidCallback that supplies the owning factory to a bean instance.
Methods inherited from class org.springframework.aop.support.AbstractPointcutAdvisor
equals, getOrder, hashCode, isPerInstance, setOrder
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setAdviceBeanNameSpecify 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.
- See Also:
getAdviceBeanNameReturn the name of the advice bean that this advisor refers to, if any.
setBeanFactorypublic void setBeanFactory
(BeanFactory beanFactory)Description copied from interface:
BeanFactoryAwareCallback that supplies the owning factory to a bean instance.
Invoked after the population of normal bean properties but before an initialization callback such as
InitializingBean.afterPropertiesSet()or a custom init-method.
setAdvicepublic void setAdvice
(Advice advice)Specify a particular instance of the target advice directly, avoiding lazy resolution in
getAdvicepublic Advice getAdvice()Description copied from interface:
AdvisorReturn the advice part of this aspect. An advice may be an interceptor, a before advice, a throws advice, etc.
toStringpublic String toString()