类 DefaultIntroductionAdvisor
java.lang.Object
infra.core.OrderedSupport
infra.aop.support.DefaultIntroductionAdvisor
- 所有已实现的接口:
Advisor,ClassFilter,IntroductionAdvisor,IntroductionInfo,infra.core.Ordered,Serializable
public class DefaultIntroductionAdvisor
extends infra.core.OrderedSupport
implements IntroductionAdvisor, ClassFilter, infra.core.Ordered, Serializable
Simple
IntroductionAdvisor implementation
that by default applies to any class.- 从以下版本开始:
- 3.0
- 作者:
- Rod Johnson, Juergen Hoeller, TODAY 2021/2/1 20:33
- 另请参阅:
-
嵌套类概要
从接口继承的嵌套类/接口 infra.aop.ClassFilter
ClassFilter.IntersectionClassFilter, ClassFilter.NegateClassFilter, ClassFilter.UnionClassFilter -
字段概要
字段从类继承的字段 infra.core.OrderedSupport
order从接口继承的字段 infra.aop.Advisor
EMPTY_ADVICE从接口继承的字段 infra.aop.ClassFilter
TRUE从接口继承的字段 infra.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器构造器说明DefaultIntroductionAdvisor(DynamicIntroductionAdvice advice, Class<?> ifc) Create a DefaultIntroductionAdvisor for the given advice.DefaultIntroductionAdvisor(Advice advice) Create a DefaultIntroductionAdvisor for the given advice.DefaultIntroductionAdvisor(Advice advice, IntroductionInfo introductionInfo) Create a DefaultIntroductionAdvisor for the given advice. -
方法概要
修饰符和类型方法说明voidaddInterface(Class<?> ifc) Add the specified interface to the list of interfaces to introduce.booleanReturn 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.inthashCode()booleanShould the pointcut apply to the given interface or target class?toString()voidCan the advised interfaces be implemented by the introduction advice?从类继承的方法 infra.core.OrderedSupport
getOrder, setOrder从接口继承的方法 infra.aop.Advisor
isPerInstance从接口继承的方法 infra.core.Ordered
getOrder
-
字段详细资料
-
advice
-
interfaces
-
-
构造器详细资料
-
DefaultIntroductionAdvisor
Create a DefaultIntroductionAdvisor for the given advice.- 参数:
advice- the Advice to apply (may implement theIntroductionInfointerface)- 另请参阅:
-
DefaultIntroductionAdvisor
Create a DefaultIntroductionAdvisor for the given advice.- 参数:
advice- the Advice to applyintroductionInfo- the IntroductionInfo that describes the interface to introduce (may benull)
-
DefaultIntroductionAdvisor
Create a DefaultIntroductionAdvisor for the given advice.- 参数:
advice- the Advice to applyifc- the interface to introduce
-
-
方法详细资料
-
addInterface
Add the specified interface to the list of interfaces to introduce.- 参数:
ifc- the interface to introduce
-
getInterfaces
从接口复制的说明:IntroductionInfoReturn the additional interfaces introduced by this Advisor or Advice.- 指定者:
getInterfaces在接口中IntroductionInfo- 返回:
- the introduced interfaces
-
validateInterfaces
public void validateInterfaces()从接口复制的说明:IntroductionAdvisorCan the advised interfaces be implemented by the introduction advice? Invoked before adding an IntroductionAdvisor.- 指定者:
validateInterfaces在接口中IntroductionAdvisor
-
getAdvice
从接口复制的说明:AdvisorReturn the advice part of this aspect. An advice may be an interceptor, a before advice, a throws advice, etc. -
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
-
matches
从接口复制的说明:ClassFilterShould the pointcut apply to the given interface or target class?- 指定者:
matches在接口中ClassFilter- 参数:
clazz- the candidate target class- 返回:
- whether the advice should apply to the given target class
-
equals
-
hashCode
public int hashCode() -
toString
-