javax.cache.interceptor
Class DefaultCacheKeyGenerator
java.lang.Object
javax.cache.interceptor.DefaultCacheKeyGenerator
- All Implemented Interfaces:
- CacheKeyGenerator
public class DefaultCacheKeyGenerator
- extends Object
- implements CacheKeyGenerator
Creates a DefaultCacheKey for the InvocationContext.
- Since:
- 1.7
- Author:
- Eric Dalquist
|
Method Summary |
CacheKey |
generateCacheKey(javax.interceptor.InvocationContext invocationContext)
Called for each intercepted method invocation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCacheKeyGenerator
public DefaultCacheKeyGenerator()
generateCacheKey
public CacheKey generateCacheKey(javax.interceptor.InvocationContext invocationContext)
- Description copied from interface:
CacheKeyGenerator
- Called for each intercepted method invocation. Generate a
CacheKey from the InvocationContext data.
- Specified by:
generateCacheKey in interface CacheKeyGenerator
- Parameters:
invocationContext - The intercepted method invocation
- Returns:
- A non-null cache key for the invocation.
- See Also:
CacheKeyGenerator.generateCacheKey(javax.interceptor.InvocationContext)
true