接口 DynamicIntroductionAdvice
- 所有超级接口:
Advice
- 所有已知子接口:
IntroductionInterceptor
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.- 从以下版本开始:
- 1.1.1
- 作者:
- Rod Johnson
- 另请参阅:
IntroductionInfo
,IntroductionAdvisor
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 boolean
implementsInterface(Class<?> intf)
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