程序包 infra.aop
类 DefaultInterceptorChainFactory
java.lang.Object
infra.aop.DefaultInterceptorChainFactory
- 所有已实现的接口:
InterceptorChainFactory,Serializable
public class DefaultInterceptorChainFactory
extends Object
implements InterceptorChainFactory, Serializable
A simple but definitive way of working out an advice chain for a Method,
given an
Advised object. Always rebuilds each advice chain;
caching can be provided by subclasses.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Rod Johnson, Adrian Colyer, Harry Yang
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final DefaultInterceptorChainFactoryprivate AdvisorAdapterRegistryprivate static final long从接口继承的字段 infra.aop.InterceptorChainFactory
EMPTY_INTERCEPTOR -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getInterceptors(Advised config, Method method, Class<?> targetClass) Determine a list ofMethodInterceptorobjects for the given advisor chain configuration.private static booleanhasMatchingIntroductions(Advisor[] advisors, Class<?> actualClass) Determine whether the Advisors contain matching introductions.voidsetRegistry(AdvisorAdapterRegistry registry)
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
INSTANCE
-
registry
-
-
构造器详细资料
-
DefaultInterceptorChainFactory
public DefaultInterceptorChainFactory()
-
-
方法详细资料
-
getInterceptors
public MethodInterceptor[] getInterceptors(Advised config, Method method, @Nullable Class<?> targetClass) 从接口复制的说明:InterceptorChainFactoryDetermine a list ofMethodInterceptorobjects for the given advisor chain configuration.- 指定者:
getInterceptors在接口中InterceptorChainFactory- 参数:
config- the AOP configuration in the form of an Advised objectmethod- the proxied methodtargetClass- the target class (may benullto indicate a proxy without target object, in which case the method's declaring class is the next best option)- 返回:
- an array of MethodInterceptors (may also include RuntimeMethodInterceptor)
-
hasMatchingIntroductions
Determine whether the Advisors contain matching introductions. -
setRegistry
-
getRegistry
-