|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.framework.HashMapCachingAdvisorChainFactory
public final class HashMapCachingAdvisorChainFactory
AdvisorChainFactory implementation that caches by method.
Uses IdentityHashMap on JDK 1.4+ or Commons Collections 3.x IdentityMap
(if available), which skip expensive Method.hashCode()
calls.
Falls back to standard HashMap on plain JDK 1.3.
CollectionFactory.createIdentityMapIfPossible(int)
,
Method.hashCode()
Constructor Summary | |
---|---|
HashMapCachingAdvisorChainFactory()
|
Method Summary | |
---|---|
void |
activated(AdvisedSupport advisedSupport)
Invoked when the first proxy is created. |
void |
adviceChanged(AdvisedSupport advisedSupport)
Invoked when advice is changed after a proxy is created. |
List |
getInterceptorsAndDynamicInterceptionAdvice(Advised config,
Object proxy,
Method method,
Class targetClass)
Determine a list of MethodInterceptor and
InterceptorAndDynamicMethodMatcher elements (using the latter
if there is a dynamic method matcher that needs evaluation at runtime) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HashMapCachingAdvisorChainFactory()
Method Detail |
---|
public List getInterceptorsAndDynamicInterceptionAdvice(Advised config, Object proxy, Method method, Class targetClass)
AdvisorChainFactory
MethodInterceptor
and
InterceptorAndDynamicMethodMatcher
elements (using the latter
if there is a dynamic method matcher that needs evaluation at runtime)
getInterceptorsAndDynamicInterceptionAdvice
in interface AdvisorChainFactory
config
- the AOP configuration in the form of an Advised obkectproxy
- the proxy objectmethod
- the proxied methodtargetClass
- the target classAdvisorChainFactoryUtils.calculateInterceptorsAndDynamicInterceptionAdvice(org.springframework.aop.framework.Advised, java.lang.Object, java.lang.reflect.Method, java.lang.Class)
public void activated(AdvisedSupport advisedSupport)
AdvisedSupportListener
activated
in interface AdvisedSupportListener
advisedSupport
- the AdvisedSupport objectpublic void adviceChanged(AdvisedSupport advisedSupport)
AdvisedSupportListener
adviceChanged
in interface AdvisedSupportListener
advisedSupport
- the AdvisedSupport object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |