站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

AdvisorChainFactoryUtils (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


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 AdvisorChainFactory 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, Juergen Hoeller
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.

Parameters:
config - the AOP configuration in the form of an Advised obkect
proxy - the proxy object
method - the proxied method
targetClass - the target class
Returns:
list of MethodInterceptor and InterceptorAndDynamicMethodMatcher elements (using the latter if there is a dynamic method matcher that needs evaluation at runtime)


Copyright (c) 2002-2007 The Spring Framework Project.