org.springframework.aop.framework
Class DefaultAdvisorChainFactory
java.lang.Object
org.springframework.aop.framework.DefaultAdvisorChainFactory
- All Implemented Interfaces:
- java.io.Serializable, AdvisorChainFactory
public class DefaultAdvisorChainFactory
- extends java.lang.Object
- implements AdvisorChainFactory, java.io.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.
- Since:
- 2.0.3
- Author:
- Juergen Hoeller, Rod Johnson, Adrian Colyer
- See Also:
- Serialized Form
Method Summary |
java.util.List<java.lang.Object> |
getInterceptorsAndDynamicInterceptionAdvice(Advised config,
java.lang.reflect.Method method,
java.lang.Class targetClass)
Determine a list of org.aopalliance.intercept.MethodInterceptor objects
for the given advisor chain configuration. |
private static boolean |
hasMatchingIntroductions(Advised config,
java.lang.Class targetClass)
Determine whether the Advisors contain matching introductions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAdvisorChainFactory
public DefaultAdvisorChainFactory()
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
org.aopalliance.intercept.MethodInterceptor
objects
for the given advisor chain configuration.
- Specified by:
getInterceptorsAndDynamicInterceptionAdvice
in interface AdvisorChainFactory
- Parameters:
config
- the AOP configuration in the form of an Advised objectmethod
- the proxied methodtargetClass
- the target class
- Returns:
- List of MethodInterceptors (may also include InterceptorAndDynamicMethodMatchers)
hasMatchingIntroductions
private static boolean hasMatchingIntroductions(Advised config,
java.lang.Class targetClass)
- Determine whether the Advisors contain matching introductions.