com.googlecode.ehcache.annotations.resolver
Class SingletonTriggersRemoveCacheResolver
java.lang.Object
com.googlecode.ehcache.annotations.resolver.SingletonTriggersRemoveCacheResolver
- All Implemented Interfaces:
- TriggersRemoveCacheResolver
public class SingletonTriggersRemoveCacheResolver
- extends java.lang.Object
- implements TriggersRemoveCacheResolver
Resolver that returns the Ehcaches provided to the constructor, no resolution logic is performed.
- Version:
- $Revision: 656 $
- Author:
- Eric Dalquist
|
Method Summary |
java.lang.Iterable<net.sf.ehcache.Ehcache> |
resolveRemoveAllCaches(org.aopalliance.intercept.MethodInvocation invocation)
|
java.lang.Iterable<net.sf.ehcache.Ehcache> |
resolveRemoveCaches(java.io.Serializable cacheKey,
org.aopalliance.intercept.MethodInvocation invocation)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingletonTriggersRemoveCacheResolver
public SingletonTriggersRemoveCacheResolver(java.util.Collection<net.sf.ehcache.Ehcache> caches)
resolveRemoveCaches
public java.lang.Iterable<net.sf.ehcache.Ehcache> resolveRemoveCaches(java.io.Serializable cacheKey,
org.aopalliance.intercept.MethodInvocation invocation)
- Specified by:
resolveRemoveCaches in interface TriggersRemoveCacheResolver
- Parameters:
cacheKey - The key generated by the configured CacheKeyGenerator, null if removeAll is trueinvocation - The MethodInvocation that is being intercepted
- Returns:
- A read-only iterable collection of caches to remove from
resolveRemoveAllCaches
public java.lang.Iterable<net.sf.ehcache.Ehcache> resolveRemoveAllCaches(org.aopalliance.intercept.MethodInvocation invocation)
- Specified by:
resolveRemoveAllCaches in interface TriggersRemoveCacheResolver
- Parameters:
invocation - The MethodInvocation that is being intercepted
- Returns:
- A read-only iterable collection of caches to remove from
Copyright © 2011. All Rights Reserved.