public class MrconsoStagingCacheInterceptor
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor
Constructor and Description |
---|
MrconsoStagingCacheInterceptor() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws java.lang.Exception
invoke
in interface org.aopalliance.intercept.MethodInterceptor
java.lang.Exception
protected java.lang.String getCacheKey(java.lang.String callingClassName, java.lang.String methodName, java.lang.Object[] args)
callingClassName
- the calling class namemethodName
- the method nameargs
- the argspublic net.sf.ehcache.Cache getCache()
public void setCache(net.sf.ehcache.Cache cache)
cache
- the new cache