org.onebusaway.container.cache
@Component public class CacheableMethodKeyFactoryManager extends Object
CacheableMethodKeyFactory
for that method. We make use of
Cacheable
, CacheableArgument
, and CacheableKey
annotations to allow customization of the default key factory behavior, as
well as directly setting behavior using methods such as
setCacheKeyFactories(Map)
and
putCacheRefreshIndicatorArgumentIndexForMethod(Method, int)
.CacheableMethodKeyFactory
,
Cacheable
,
CacheableArgument
,
CacheableKey
Constructor and Description |
---|
CacheableMethodKeyFactoryManager() |
public void addCacheableObjectKeyFactory(Class<?> className, CacheableObjectKeyFactory keyFactory)
public void putCacheRefreshIndicatorArgumentIndexForMethodSignature(String methodName, int argumentIndex)
public void putCacheRefreshIndicatorArgumentIndexForMethod(Method method, int argumentIndex)
public CacheableMethodKeyFactory getCacheableMethodKeyFactoryForJoinPoint(org.aspectj.lang.ProceedingJoinPoint pjp, Method method)
public CacheableMethodKeyFactory getCacheableMethodKeyFactoryForMethod(Method m)
public Method getMatchingMethodForJoinPoint(org.aspectj.lang.ProceedingJoinPoint pjp)
public List<Method> getMatchingMethodsForJoinPoint(org.aspectj.lang.ProceedingJoinPoint pjp)
protected CacheableArgument getCacheableArgumentAnnotation(Annotation[] annotations)
protected CacheableObjectKeyFactory getKeyFactoryForCacheableArgumentAnnotation(Class<?> type, CacheableArgument cacheableArgumentAnnotation, boolean cacheRefreshIndicator)
protected CacheableObjectKeyFactory getKeyFactoryForParameterType(Class<?> type, boolean cacheRefreshIndicator)
protected net.sf.ehcache.Cache createCache(org.aspectj.lang.ProceedingJoinPoint pjp, String name)
Copyright © 2014 OneBusAway. All Rights Reserved.