类 DeclareParentsAdvisor
java.lang.Object
infra.aop.aspectj.DeclareParentsAdvisor
- 所有已实现的接口:
Advisor,IntroductionAdvisor,IntroductionInfo
Introduction advisor delegating to the given object.
Implements AspectJ annotation-style behavior for the DeclareParents annotation.
- 从以下版本开始:
- 4.0
- 作者:
- Rod Johnson, Ramnivas Laddad, Harry Yang
-
字段概要
字段从接口继承的字段 infra.aop.Advisor
EMPTY_ADVICE -
构造器概要
构造器限定符构造器说明privateDeclareParentsAdvisor(Class<?> interfaceType, String typePattern, IntroductionInterceptor interceptor) Private constructor to share common code between impl-based delegate and reference-based delegate (cannot use method such as init() to share common code, due the use of final fields).DeclareParentsAdvisor(Class<?> interfaceType, String typePattern, Class<?> defaultImpl) Create a new advisor for this DeclareParents field.DeclareParentsAdvisor(Class<?> interfaceType, String typePattern, Object delegateRef) Create a new advisor for this DeclareParents field. -
方法概要
修饰符和类型方法说明Return the advice part of this aspect.Return the filter determining which target classes this introduction should apply to.Class<?>[]Return the additional interfaces introduced by this Advisor or Advice.voidCan the advised interfaces be implemented by the introduction advice?从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 infra.aop.Advisor
isPerInstance
-
字段详细资料
-
advice
-
introducedInterface
-
typePatternClassFilter
-
-
构造器详细资料
-
DeclareParentsAdvisor
Create a new advisor for this DeclareParents field.- 参数:
interfaceType- static field defining the introductiontypePattern- type pattern the introduction is restricted todefaultImpl- the default implementation class
-
DeclareParentsAdvisor
Create a new advisor for this DeclareParents field.- 参数:
interfaceType- static field defining the introductiontypePattern- type pattern the introduction is restricted todelegateRef- the delegate implementation object
-
DeclareParentsAdvisor
private DeclareParentsAdvisor(Class<?> interfaceType, String typePattern, IntroductionInterceptor interceptor) Private constructor to share common code between impl-based delegate and reference-based delegate (cannot use method such as init() to share common code, due the use of final fields).- 参数:
interfaceType- static field defining the introductiontypePattern- type pattern the introduction is restricted tointerceptor- the delegation advice asIntroductionInterceptor
-
-
方法详细资料
-
getClassFilter
从接口复制的说明:IntroductionAdvisorReturn the filter determining which target classes this introduction should apply to.This represents the class part of a pointcut. Note that method matching doesn't make sense to introductions.
- 指定者:
getClassFilter在接口中IntroductionAdvisor- 返回:
- the class filter
-
validateInterfaces
从接口复制的说明:IntroductionAdvisorCan the advised interfaces be implemented by the introduction advice? Invoked before adding an IntroductionAdvisor.- 指定者:
validateInterfaces在接口中IntroductionAdvisor- 抛出:
IllegalArgumentException- if the advised interfaces can't be implemented by the introduction advice
-
getAdvice
从接口复制的说明:AdvisorReturn the advice part of this aspect. An advice may be an interceptor, a before advice, a throws advice, etc. -
getInterfaces
从接口复制的说明:IntroductionInfoReturn the additional interfaces introduced by this Advisor or Advice.- 指定者:
getInterfaces在接口中IntroductionInfo- 返回:
- the introduced interfaces
-