程序包 infra.aop

接口 IntroductionAdvisor

所有超级接口:
Advisor, IntroductionInfo
所有已知实现类:
DeclareParentsAdvisor, DefaultIntroductionAdvisor

public interface IntroductionAdvisor extends Advisor, IntroductionInfo
Superinterface for advisors that perform one or more AOP introductions.

This interface cannot be implemented directly; subinterfaces must provide the advice type implementing the introduction.

Introduction is the implementation of additional interfaces (not implemented by a target) via AOP advice.

从以下版本开始:
3.0
作者:
Rod Johnson, TODAY 2021/2/1 18:47
另请参阅:
  • 方法详细资料

    • getClassFilter

      ClassFilter getClassFilter()
      Return 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.

      返回:
      the class filter
    • validateInterfaces

      void validateInterfaces()
      Can the advised interfaces be implemented by the introduction advice? Invoked before adding an IntroductionAdvisor.
      抛出:
      IllegalArgumentException - if the advised interfaces can't be implemented by the introduction advice