org.kuali.student.common.util.spring
Class MethodArgsToObjectEhcacheAdvice
java.lang.Object
org.kuali.student.common.util.spring.MethodArgsToObjectEhcacheAdvice
- All Implemented Interfaces:
- org.aopalliance.aop.Advice
- Direct Known Subclasses:
- MetadataMethodEhcacheAdvice
public class MethodArgsToObjectEhcacheAdvice
- extends Object
- implements org.aopalliance.aop.Advice
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
final Logger LOG
cacheManager
private net.sf.ehcache.CacheManager cacheManager
cacheName
private String cacheName
enabled
private boolean enabled
MethodArgsToObjectEhcacheAdvice
public MethodArgsToObjectEhcacheAdvice()
MethodArgsToObjectEhcacheAdvice
public MethodArgsToObjectEhcacheAdvice(String cacheName)
- Parameters:
cacheName
-
invalidateCache
public Object invalidateCache(org.aspectj.lang.ProceedingJoinPoint pjp)
throws Throwable
- Throws:
Throwable
getFromCache
public Object getFromCache(org.aspectj.lang.ProceedingJoinPoint pjp)
throws Throwable
- Throws:
Throwable
getCacheKey
private org.apache.commons.collections.keyvalue.MultiKey getCacheKey(org.aspectj.lang.ProceedingJoinPoint pjp)
getCacheName
public String getCacheName()
- Returns:
- the cacheName
setCacheName
public void setCacheName(String cacheName)
- Parameters:
cacheName
- the cacheName to set
setCacheManager
public void setCacheManager(net.sf.ehcache.CacheManager cacheManager)
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean enabled)
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.