Top Description Fields Constructors Methods
org.springframework.aop.framework

public Class DefaultAdvisorChainFactory

extends Object
implements AdvisorChainFactory, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.springframework.aop.framework.AdvisorChainFactory
Annotations
@SuppressWarnings:serial
Imports
java.io.Serializable, java.lang.reflect.Method, java.util.ArrayList, .Arrays, .List, org.aopalliance.intercept.Interceptor, .MethodInterceptor, org.springframework.aop.Advisor, .IntroductionAdvisor, .IntroductionAwareMethodMatcher, .MethodMatcher, .PointcutAdvisor, org.springframework.aop.framework.adapter.AdvisorAdapterRegistry, .GlobalAdvisorAdapterRegistry, org.springframework.lang.Nullable

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.
Authors
Juergen Hoeller, Rod Johnson, Adrian Colyer
Since
2.0.3

Field Summary

Modifier and TypeField and Description
public static final DefaultAdvisorChainFactory
INSTANCE

Singleton instance of this class.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<Object>
getInterceptorsAndDynamicInterceptionAdvice(Advised
the AOP configuration in the form of an Advised object
config
,
Method
the proxied method
method
,
Class<?>
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)
targetClass
)

Implements org.springframework.aop.framework.AdvisorChainFactory.getInterceptorsAndDynamicInterceptionAdvice.

Determine a list of org.aopalliance.intercept.MethodInterceptor objects for the given advisor chain configuration.

private static boolean
hasMatchingIntroductions(Advisor[] advisors, Class<?> actualClass)

Determine whether the Advisors contain matching introductions.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final DefaultAdvisorChainFactory INSTANCE

Singleton instance of this class.

Since
6.0.10

Constructor Detail

DefaultAdvisorChainFactoryback to summary
public DefaultAdvisorChainFactory()

Method Detail

getInterceptorsAndDynamicInterceptionAdviceback to summary
public List<Object> getInterceptorsAndDynamicInterceptionAdvice(Advised config, Method method, Class<?> targetClass)

Implements org.springframework.aop.framework.AdvisorChainFactory.getInterceptorsAndDynamicInterceptionAdvice.

Doc from org.springframework.aop.framework.AdvisorChainFactory.getInterceptorsAndDynamicInterceptionAdvice.

Determine a list of org.aopalliance.intercept.MethodInterceptor objects for the given advisor chain configuration.

Parameters
config:Advised

the AOP configuration in the form of an Advised object

method:Method

the proxied method

targetClass:Class<?>

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)

Returns:List<Object>

a List of MethodInterceptors (may also include InterceptorAndDynamicMethodMatchers)

Annotations
@Override
hasMatchingIntroductionsback to summary
private static boolean hasMatchingIntroductions(Advisor[] advisors, Class<?> actualClass)

Determine whether the Advisors contain matching introductions.