javax.cache.interceptor
Class DefaultCacheKeyGenerator

java.lang.Object
  extended by 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

Constructor Summary
DefaultCacheKeyGenerator()
           
 
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
 

Constructor Detail

DefaultCacheKeyGenerator

public DefaultCacheKeyGenerator()
Method Detail

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