程序包 infra.aop

接口 DynamicIntroductionAdvice

所有超级接口:
Advice
所有已知子接口:
IntroductionInterceptor
所有已知实现类:
DelegatePerTargetObjectIntroductionInterceptor, DelegatingIntroductionInterceptor, ExposeBeanNameAdvisors.ExposeBeanNameIntroduction

public interface DynamicIntroductionAdvice extends Advice
Subinterface of AOP Alliance Advice that allows additional interfaces to be implemented by an Advice, and available via a proxy using that interceptor. This is a fundamental AOP concept called introduction.

Introductions are often mixins, enabling the building of composite objects that can achieve many of the goals of multiple inheritance in Java.

Compared to {qlink IntroductionInfo}, this interface allows an advice to implement a range of interfaces that is not necessarily known in advance. Thus an IntroductionAdvisor can be used to specify which interfaces will be exposed in an advised object.

从以下版本开始:
4.0
作者:
Rod Johnson, TODAY 2021/2/1 18:48
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    Does this introduction advice implement the given interface?
  • 方法详细资料

    • implementsInterface

      boolean implementsInterface(Class<?> intf)
      Does this introduction advice implement the given interface?
      参数:
      intf - the interface to check
      返回:
      whether the advice implements the specified interface