类 AbstractBeanFactoryPointcutAdvisor
java.lang.Object
infra.core.OrderedSupport
infra.aop.support.AbstractPointcutAdvisor
infra.aop.support.AbstractBeanFactoryPointcutAdvisor
- 所有已实现的接口:
Advisor,PointcutAdvisor,infra.beans.factory.Aware,infra.beans.factory.BeanFactoryAware,infra.core.Ordered,Serializable
public abstract class AbstractBeanFactoryPointcutAdvisor
extends AbstractPointcutAdvisor
implements infra.beans.factory.BeanFactoryAware
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.
- 从以下版本开始:
- 4.0 2021/12/10 21:20
- 作者:
- Juergen Hoeller, Harry Yang
- 另请参阅:
-
字段概要
字段从类继承的字段 infra.core.OrderedSupport
order从接口继承的字段 infra.aop.Advisor
EMPTY_ADVICE从接口继承的字段 infra.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Return the advice part of this aspect.Return the name of the advice bean that this advisor refers to, if any.private voidvoidSpecify a particular instance of the target advice directly, avoiding lazy resolution ingetAdvice().voidsetAdviceBeanName(String adviceBeanName) Specify the name of the advice bean that this advisor should refer to.voidsetBeanFactory(infra.beans.factory.BeanFactory beanFactory) toString()从类继承的方法 infra.aop.support.AbstractPointcutAdvisor
equals, getOrder, hashCode从类继承的方法 infra.core.OrderedSupport
setOrder从接口继承的方法 infra.aop.Advisor
isPerInstance从接口继承的方法 infra.aop.PointcutAdvisor
getPointcut
-
字段详细资料
-
adviceBeanName
-
beanFactory
@Nullable private infra.beans.factory.BeanFactory beanFactory -
advice
-
adviceMonitor
-
-
构造器详细资料
-
AbstractBeanFactoryPointcutAdvisor
public AbstractBeanFactoryPointcutAdvisor()
-
-
方法详细资料
-
setAdviceBeanName
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.
- 另请参阅:
-
getAdviceBeanName
Return the name of the advice bean that this advisor refers to, if any. -
setBeanFactory
public void setBeanFactory(@Nullable infra.beans.factory.BeanFactory beanFactory) - 指定者:
setBeanFactory在接口中infra.beans.factory.BeanFactoryAware
-
setAdvice
Specify a particular instance of the target advice directly, avoiding lazy resolution ingetAdvice(). -
getAdvice
从接口复制的说明:AdvisorReturn the advice part of this aspect. An advice may be an interceptor, a before advice, a throws advice, etc. -
toString
-
readObject
-