org.lexgrid.loader.rrf.staging.cache.interceptor
Class MrconsoStagingCacheInterceptor

java.lang.Object
  extended by org.lexgrid.loader.rrf.staging.cache.interceptor.MrconsoStagingCacheInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class MrconsoStagingCacheInterceptor
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor

The Class MrconsoStagingCacheInterceptor.

Author:
Kevin Peterson

Constructor Summary
MrconsoStagingCacheInterceptor()
           
 
Method Summary
 net.sf.ehcache.Cache getCache()
          Gets the cache.
protected  java.lang.String getCacheKey(java.lang.String callingClassName, java.lang.String methodName, java.lang.Object[] args)
          Gets the cache key.
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
 void setCache(net.sf.ehcache.Cache cache)
          Sets the cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MrconsoStagingCacheInterceptor

public MrconsoStagingCacheInterceptor()
Method Detail

invoke

public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
                        throws java.lang.Exception
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
java.lang.Exception

getCacheKey

protected java.lang.String getCacheKey(java.lang.String callingClassName,
                                       java.lang.String methodName,
                                       java.lang.Object[] args)
Gets the cache key.

Parameters:
callingClassName - the calling class name
methodName - the method name
args - the args
Returns:
the cache key

getCache

public net.sf.ehcache.Cache getCache()
Gets the cache.

Returns:
the cache

setCache

public void setCache(net.sf.ehcache.Cache cache)
Sets the cache.

Parameters:
cache - the new cache

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.