|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.ehcache.annotations.resolver.SingletonCacheableCacheResolver
public class SingletonCacheableCacheResolver
Resolver that returns the Ehcaches provided to the constructor, no resolution logic is performed.
| Constructor Summary | |
|---|---|
SingletonCacheableCacheResolver(net.sf.ehcache.Ehcache cache,
java.lang.ThreadLocal<org.aopalliance.intercept.MethodInvocation> selfPopulatingEntryFactory)
|
|
SingletonCacheableCacheResolver(net.sf.ehcache.Ehcache cache,
java.lang.ThreadLocal<org.aopalliance.intercept.MethodInvocation> selfPopulatingEntryFactory,
net.sf.ehcache.Ehcache exceptionCache)
|
|
| Method Summary | |
|---|---|
net.sf.ehcache.Ehcache |
resolveCache(java.io.Serializable cacheKey,
org.aopalliance.intercept.MethodInvocation invocation)
Resolve the cache to use to handle the method invocation. |
net.sf.ehcache.Ehcache |
resolveExceptionCache(java.io.Serializable cacheKey,
org.aopalliance.intercept.MethodInvocation invocation,
java.lang.Throwable t)
Resolve the cache to use to handle an exception thrown by the method invocation. |
java.lang.ThreadLocal<org.aopalliance.intercept.MethodInvocation> |
resolveSelfPopulatingCacheEntryFactory(net.sf.ehcache.Ehcache cache,
java.io.Serializable cacheKey,
org.aopalliance.intercept.MethodInvocation invocation)
Resolve the ThreadLocal used to handle the self-populating nature of the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingletonCacheableCacheResolver(net.sf.ehcache.Ehcache cache,
java.lang.ThreadLocal<org.aopalliance.intercept.MethodInvocation> selfPopulatingEntryFactory)
public SingletonCacheableCacheResolver(net.sf.ehcache.Ehcache cache,
java.lang.ThreadLocal<org.aopalliance.intercept.MethodInvocation> selfPopulatingEntryFactory,
net.sf.ehcache.Ehcache exceptionCache)
| Method Detail |
|---|
public net.sf.ehcache.Ehcache resolveCache(java.io.Serializable cacheKey,
org.aopalliance.intercept.MethodInvocation invocation)
CacheableCacheResolver
resolveCache in interface CacheableCacheResolvercacheKey - The key generated by the configured CacheKeyGeneratorinvocation - The MethodInvocation that is being intercepted
public java.lang.ThreadLocal<org.aopalliance.intercept.MethodInvocation> resolveSelfPopulatingCacheEntryFactory(net.sf.ehcache.Ehcache cache,
java.io.Serializable cacheKey,
org.aopalliance.intercept.MethodInvocation invocation)
CacheableCacheResolver
resolveSelfPopulatingCacheEntryFactory in interface CacheableCacheResolvercacheKey - The key generated by the configured CacheKeyGeneratorinvocation - The MethodInvocation that is being intercepted
public net.sf.ehcache.Ehcache resolveExceptionCache(java.io.Serializable cacheKey,
org.aopalliance.intercept.MethodInvocation invocation,
java.lang.Throwable t)
CacheableCacheResolver
resolveExceptionCache in interface CacheableCacheResolvercacheKey - The key generated by the configured CacheKeyGeneratorinvocation - The MethodInvocation that is being interceptedt - The exception thrown by the MethodInvocation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||