The Spring Framework

org.springframework.aop.framework
Class AdvisorChainFactoryUtils

java.lang.Object
  extended by org.springframework.aop.framework.AdvisorChainFactoryUtils

public abstract class AdvisorChainFactoryUtils
extends Object

Utility methods for use by AdviceChainFactory implementations.

The calculateInterceptorsAndDynamicInterceptionAdvice(org.springframework.aop.framework.Advised, java.lang.Object, java.lang.reflect.Method, java.lang.Class) method is the definitive way of working out an advice chain for a Method, given an Advised object.

Author:
Rod Johnson, Adrian Colyer
See Also:
AdvisorChainFactory

Field Summary
static AdvisorChainFactory SIMPLE_ADVISOR_CHAIN_FACTORY
          Canonical instance of a simple AdvisorChainFactory implementation that delegates to the calculateInterceptorsAndDynamicInterceptionAdvice(org.springframework.aop.framework.Advised, java.lang.Object, java.lang.reflect.Method, java.lang.Class) method.
 
Constructor Summary
AdvisorChainFactoryUtils()
           
 
Method Summary
static List calculateInterceptorsAndDynamicInterceptionAdvice(Advised config, Object proxy, Method method, Class targetClass)
          Return the static interceptors and dynamic interception advice that may apply to this method invocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIMPLE_ADVISOR_CHAIN_FACTORY

public static final AdvisorChainFactory SIMPLE_ADVISOR_CHAIN_FACTORY
Canonical instance of a simple AdvisorChainFactory implementation that delegates to the calculateInterceptorsAndDynamicInterceptionAdvice(org.springframework.aop.framework.Advised, java.lang.Object, java.lang.reflect.Method, java.lang.Class) method.

Constructor Detail

AdvisorChainFactoryUtils

public AdvisorChainFactoryUtils()
Method Detail

calculateInterceptorsAndDynamicInterceptionAdvice

public static List calculateInterceptorsAndDynamicInterceptionAdvice(Advised config,
                                                                     Object proxy,
                                                                     Method method,
                                                                     Class targetClass)
Return the static interceptors and dynamic interception advice that may apply to this method invocation.

Returns:
list of MethodInterceptor and InterceptionAdvice (if there's a dynamic method matcher that needs evaluation at runtime)

The Spring Framework

Copyright © 2002-2006 The Spring Framework.