类 DeclareParentsAdvisor

java.lang.Object
infra.aop.aspectj.DeclareParentsAdvisor
所有已实现的接口:
Advisor, IntroductionAdvisor, IntroductionInfo

public class DeclareParentsAdvisor extends Object implements IntroductionAdvisor
Introduction advisor delegating to the given object. Implements AspectJ annotation-style behavior for the DeclareParents annotation.
从以下版本开始:
4.0
作者:
Rod Johnson, Ramnivas Laddad, Harry Yang
  • 字段详细资料

    • advice

      private final Advice advice
    • introducedInterface

      private final Class<?> introducedInterface
    • typePatternClassFilter

      private final ClassFilter typePatternClassFilter
  • 构造器详细资料

    • DeclareParentsAdvisor

      public DeclareParentsAdvisor(Class<?> interfaceType, String typePattern, Class<?> defaultImpl)
      Create a new advisor for this DeclareParents field.
      参数:
      interfaceType - static field defining the introduction
      typePattern - type pattern the introduction is restricted to
      defaultImpl - the default implementation class
    • DeclareParentsAdvisor

      public DeclareParentsAdvisor(Class<?> interfaceType, String typePattern, Object delegateRef)
      Create a new advisor for this DeclareParents field.
      参数:
      interfaceType - static field defining the introduction
      typePattern - type pattern the introduction is restricted to
      delegateRef - 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 introduction
      typePattern - type pattern the introduction is restricted to
      interceptor - the delegation advice as IntroductionInterceptor
  • 方法详细资料