org.onebusaway.container.cache
Class CacheableMethodManager
java.lang.Object
org.onebusaway.container.cache.CacheableMethodManager
- Direct Known Subclasses:
- CacheableAnnotationInterceptor, TransitDataServiceCachingInterceptor
public class CacheableMethodManager
- extends Object
Support class providing functionality for caching the output of arbitrary
method calls, using the arguments to the method to generate the cache key.
EhCache is used as the backing cache store.
- Author:
- bdferris
- See Also:
Cacheable
,
CacheableAnnotationInterceptor
,
CacheableMethodKeyFactory
,
CacheableMethodKeyFactoryManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_cacheableMethodKeyFactoryManager
protected CacheableMethodKeyFactoryManager _cacheableMethodKeyFactoryManager
CacheableMethodManager
public CacheableMethodManager()
setCacheManager
public void setCacheManager(net.sf.ehcache.CacheManager cacheManager)
setCacheableMethodKeyFactoryManager
public void setCacheableMethodKeyFactoryManager(CacheableMethodKeyFactoryManager cacheableMethodKeyFactoryManager)
setCacheNamePrefix
public void setCacheNamePrefix(String cacheNamePrefix)
evaluate
public Object evaluate(org.aspectj.lang.ProceedingJoinPoint pjp)
throws Throwable
- Throws:
Throwable
getKeyFactory
protected CacheableMethodKeyFactory getKeyFactory(org.aspectj.lang.ProceedingJoinPoint pjp,
Method method)
- Protected Methods
- Parameters:
method
-
getCacheName
protected String getCacheName(org.aspectj.lang.ProceedingJoinPoint pjp)
createCache
protected net.sf.ehcache.Cache createCache(org.aspectj.lang.ProceedingJoinPoint pjp,
String name)
Copyright © 2012 OneBusAway. All Rights Reserved.