org.springframework.aop.framework
Class HashMapCachingAdvisorChainFactory

java.lang.Object
  extended byorg.springframework.aop.framework.HashMapCachingAdvisorChainFactory
All Implemented Interfaces:
AdvisedSupportListener, AdvisorChainFactory

public final class HashMapCachingAdvisorChainFactory
extends java.lang.Object
implements AdvisorChainFactory

AdvisorChainFactory implementation that caches by method. Uses IdentityHashMap in JVM 1.4, which skips expensive Method.hashCode() call. In 1.3, falls back to using HashMap.

Version:
$Id: HashMapCachingAdvisorChainFactory.java,v 1.4 2004/03/18 02:46:05 trisberg Exp $
Author:
Rod Johnson

Constructor Summary
HashMapCachingAdvisorChainFactory()
           
 
Method Summary
 void activated(AdvisedSupport advisedSupport)
          Invoked when first proxy is created
 void adviceChanged(AdvisedSupport advisedSupport)
          Invoked when advice is changed after a proxy is created
 java.util.List getInterceptorsAndDynamicInterceptionAdvice(Advised config, java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Class targetClass)
          Return a list of Interceptor and InterceptorAndDynamicMethodMatcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashMapCachingAdvisorChainFactory

public HashMapCachingAdvisorChainFactory()
Method Detail

getInterceptorsAndDynamicInterceptionAdvice

public java.util.List getInterceptorsAndDynamicInterceptionAdvice(Advised config,
                                                                  java.lang.Object proxy,
                                                                  java.lang.reflect.Method method,
                                                                  java.lang.Class targetClass)
Description copied from interface: AdvisorChainFactory
Return a list of Interceptor and InterceptorAndDynamicMethodMatcher.

Specified by:
getInterceptorsAndDynamicInterceptionAdvice in interface AdvisorChainFactory

activated

public void activated(AdvisedSupport advisedSupport)
Description copied from interface: AdvisedSupportListener
Invoked when first proxy is created

Specified by:
activated in interface AdvisedSupportListener
Parameters:
advisedSupport -
See Also:
AdvisedSupportListener.activated(org.springframework.aop.framework.AdvisedSupport)

adviceChanged

public void adviceChanged(AdvisedSupport advisedSupport)
Description copied from interface: AdvisedSupportListener
Invoked when advice is changed after a proxy is created

Specified by:
adviceChanged in interface AdvisedSupportListener
Parameters:
advisedSupport -
See Also:
AdvisedSupportListener.adviceChanged(org.springframework.aop.framework.AdvisedSupport)


Copyright (C) 2003-2004 The Spring Framework Project.