类 InstantiationModelAwarePointcutAdvisorImpl
java.lang.Object
infra.aop.aspectj.annotation.InstantiationModelAwarePointcutAdvisorImpl
- 所有已实现的接口:
Advisor,AspectJPrecedenceInformation,InstantiationModelAwarePointcutAdvisor,PointcutAdvisor,infra.core.Ordered,Serializable
final class InstantiationModelAwarePointcutAdvisorImpl
extends Object
implements InstantiationModelAwarePointcutAdvisor, AspectJPrecedenceInformation, Serializable
Internal implementation of AspectJPointcutAdvisor.
Note that there will be one instance of this advisor for each target method.
- 从以下版本开始:
- 4.0
- 作者:
- Rod Johnson, Juergen Hoeller, Harry Yang
-
嵌套类概要
嵌套类修饰符和类型类说明private static final classPointcut implementation that changes its behaviour when the advice is instantiated. -
字段概要
字段修饰符和类型字段说明private final MetadataAwareAspectInstanceFactoryprivate Methodprivate final AspectJAdvisorFactoryprivate final Stringprivate final intprivate final AspectJExpressionPointcutprivate final Class<?>private Adviceprivate Booleanprivate Booleanprivate final booleanprivate final Stringprivate final Class<?>[]private final Pointcut从接口继承的字段 infra.aop.Advisor
EMPTY_ADVICE从接口继承的字段 infra.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器构造器说明InstantiationModelAwarePointcutAdvisorImpl(AspectJExpressionPointcut declaredPointcut, Method aspectJAdviceMethod, AspectJAdvisorFactory aspectJAdvisorFactory, MetadataAwareAspectInstanceFactory aspectInstanceFactory, int declarationOrder, String aspectName) -
方法概要
修饰符和类型方法说明private voidDuplicates some logic from getAdvice, but importantly does not force creation of the advice.Lazily instantiate advice if necessary.Return the AspectJ AspectMetadata for this advisor.Return the name of the aspect (bean) in which the advice was declared.intReturn the declaration order of the advice member within the aspect.intgetOrder()The pointcut for Framework AOP to use.private AdviceinstantiateAdvice(AspectJExpressionPointcut pointcut) booleanReturn whether this advisor has already instantiated its advice.booleanReturn whether this is an after advice.booleanReturn whether this is a before advice.booleanisLazy()Return whether this advisor is lazily initializing its underlying advice.booleanThis is only of interest for Framework AOP: AspectJ instantiation semantics are much richer.private voidreadObject(ObjectInputStream inputStream) toString()
-
字段详细资料
-
declaredPointcut
-
declaringClass
-
methodName
-
parameterTypes
-
aspectJAdviceMethod
-
aspectJAdvisorFactory
-
aspectInstanceFactory
-
declarationOrder
private final int declarationOrder -
aspectName
-
pointcut
-
lazy
private final boolean lazy -
instantiatedAdvice
-
isBeforeAdvice
-
isAfterAdvice
-
-
构造器详细资料
-
InstantiationModelAwarePointcutAdvisorImpl
public InstantiationModelAwarePointcutAdvisorImpl(AspectJExpressionPointcut declaredPointcut, Method aspectJAdviceMethod, AspectJAdvisorFactory aspectJAdvisorFactory, MetadataAwareAspectInstanceFactory aspectInstanceFactory, int declarationOrder, String aspectName)
-
-
方法详细资料
-
getPointcut
The pointcut for Framework AOP to use. Actual behaviour of the pointcut will change depending on the state of the advice.- 指定者:
getPointcut在接口中PointcutAdvisor
-
isLazy
public boolean isLazy()从接口复制的说明:InstantiationModelAwarePointcutAdvisorReturn whether this advisor is lazily initializing its underlying advice.- 指定者:
isLazy在接口中InstantiationModelAwarePointcutAdvisor
-
isAdviceInstantiated
public boolean isAdviceInstantiated()从接口复制的说明:InstantiationModelAwarePointcutAdvisorReturn whether this advisor has already instantiated its advice. -
getAdvice
Lazily instantiate advice if necessary. -
instantiateAdvice
-
isPerInstance
public boolean isPerInstance()This is only of interest for Framework AOP: AspectJ instantiation semantics are much richer. In AspectJ terminology, all a return oftruemeans here is that the aspect is not a SINGLETON.- 指定者:
isPerInstance在接口中Advisor- 返回:
- whether this advice is associated with a particular target instance
-
getAspectMetadata
Return the AspectJ AspectMetadata for this advisor. -
getAspectInstanceFactory
-
getDeclaredPointcut
-
getOrder
public int getOrder()- 指定者:
getOrder在接口中infra.core.Ordered
-
getAspectName
从接口复制的说明:AspectJPrecedenceInformationReturn the name of the aspect (bean) in which the advice was declared.- 指定者:
getAspectName在接口中AspectJPrecedenceInformation
-
getDeclarationOrder
public int getDeclarationOrder()从接口复制的说明:AspectJPrecedenceInformationReturn the declaration order of the advice member within the aspect. -
isBeforeAdvice
public boolean isBeforeAdvice()从接口复制的说明:AspectJPrecedenceInformationReturn whether this is a before advice.- 指定者:
isBeforeAdvice在接口中AspectJPrecedenceInformation
-
isAfterAdvice
public boolean isAfterAdvice()从接口复制的说明:AspectJPrecedenceInformationReturn whether this is an after advice.- 指定者:
isAfterAdvice在接口中AspectJPrecedenceInformation
-
determineAdviceType
private void determineAdviceType()Duplicates some logic from getAdvice, but importantly does not force creation of the advice. -
readObject
-
toString
-