Class DefaultAdvisorChainFactory
- java.lang.Object
- org.springframework.aop.framework.DefaultAdvisorChainFactory
- All Implemented Interfaces:
Serializable
,AdvisorChainFactory
public class DefaultAdvisorChainFactory extends Object implements AdvisorChainFactory, Serializable
A simple but definitive way of working out an advice chain for a Method, given anAdvised
object. Always rebuilds each advice chain; caching can be provided by subclasses.- Since:
- 2.0.3
- Author:
- Juergen Hoeller, Rod Johnson, Adrian Colyer
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description DefaultAdvisorChainFactory()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>
getInterceptorsAndDynamicInterceptionAdvice(Advised config, Method method, Class<?> targetClass)
Determine a list ofMethodInterceptor
objects for the given advisor chain configuration.
Constructor Detail
DefaultAdvisorChainFactory
public DefaultAdvisorChainFactory()
Method Detail
getInterceptorsAndDynamicInterceptionAdvice
public List<Object> getInterceptorsAndDynamicInterceptionAdvice(Advised config, Method method, Class<?> targetClass)
Description copied from interface:AdvisorChainFactory
Determine a list ofMethodInterceptor
objects for the given advisor chain configuration.- Specified by:
getInterceptorsAndDynamicInterceptionAdvice
in interfaceAdvisorChainFactory
- Parameters:
config
- the AOP configuration in the form of an Advised objectmethod
- the proxied methodtargetClass
- the target class (may benull
to indicate a proxy without target object, in which case the method's declaring class is the next best option)- Returns:
- List of MethodInterceptors (may also include InterceptorAndDynamicMethodMatchers)