程序包 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
另请参阅:
  • 字段详细资料

  • 构造器详细资料

    • DefaultInterceptorChainFactory

      public DefaultInterceptorChainFactory()
  • 方法详细资料

    • getInterceptors

      public MethodInterceptor[] getInterceptors(Advised config, Method method, @Nullable Class<?> targetClass)
      从接口复制的说明: InterceptorChainFactory
      Determine a list of MethodInterceptor objects for the given advisor chain configuration.
      指定者:
      getInterceptors 在接口中 InterceptorChainFactory
      参数:
      config - the AOP configuration in the form of an Advised object
      method - the proxied method
      targetClass - the target class (may be null to 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

      private static boolean hasMatchingIntroductions(Advisor[] advisors, Class<?> actualClass)
      Determine whether the Advisors contain matching introductions.
    • setRegistry

      public void setRegistry(AdvisorAdapterRegistry registry)
    • getRegistry

      public AdvisorAdapterRegistry getRegistry()