org.kuali.student.common.util.spring
Class MethodArgsToObjectEhcacheAdvice

java.lang.Object
  extended by 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


Field Summary
private  net.sf.ehcache.CacheManager cacheManager
           
private  String cacheName
           
private  boolean enabled
           
(package private)  Logger LOG
           
 
Constructor Summary
MethodArgsToObjectEhcacheAdvice()
           
MethodArgsToObjectEhcacheAdvice(String cacheName)
           
 
Method Summary
private  org.apache.commons.collections.keyvalue.MultiKey getCacheKey(org.aspectj.lang.ProceedingJoinPoint pjp)
           
 String getCacheName()
           
 Object getFromCache(org.aspectj.lang.ProceedingJoinPoint pjp)
           
 Object invalidateCache(org.aspectj.lang.ProceedingJoinPoint pjp)
           
 boolean isEnabled()
           
 void setCacheManager(net.sf.ehcache.CacheManager cacheManager)
           
 void setCacheName(String cacheName)
           
 void setEnabled(boolean enabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

final Logger LOG

cacheManager

private net.sf.ehcache.CacheManager cacheManager

cacheName

private String cacheName

enabled

private boolean enabled
Constructor Detail

MethodArgsToObjectEhcacheAdvice

public MethodArgsToObjectEhcacheAdvice()

MethodArgsToObjectEhcacheAdvice

public MethodArgsToObjectEhcacheAdvice(String cacheName)
Parameters:
cacheName -
Method Detail

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.