Class DefaultAdvisorChainFactory

  • java.lang.Object
    • org.springframework.aop.framework.DefaultAdvisorChainFactory
  • All Implemented Interfaces:, AdvisorChainFactory

    public class DefaultAdvisorChainFactory
    extends java.lang.Object
    implements AdvisorChainFactory,
    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.
    Juergen Hoeller, Rod Johnson, Adrian Colyer
    See Also:
    Serialized Form
    • Constructor Detail

      • DefaultAdvisorChainFactory

        public DefaultAdvisorChainFactory()
    • Method Detail

      • getInterceptorsAndDynamicInterceptionAdvice

        public java.util.List<java.lang.Object> getInterceptorsAndDynamicInterceptionAdvice(Advised config,
                                                                                            java.lang.reflect.Method method,
                                                                                            java.lang.Class<?> targetClass)
        Description copied from interface: AdvisorChainFactory
        Determine a list of MethodInterceptor objects for the given advisor chain configuration.
        Specified by:
        getInterceptorsAndDynamicInterceptionAdvice in interface AdvisorChainFactory
        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)
        a List of MethodInterceptors (may also include InterceptorAndDynamicMethodMatchers)