javax.cache.annotation
Interface CacheKeyGenerator


public interface CacheKeyGenerator

Generates a CacheKey based on a CacheKeyInvocationContext.

Implementations MUST be thread-safe.

Since:
1.0
Author:
Eric Dalquist

Method Summary
 CacheKey generateCacheKey(CacheKeyInvocationContext<? extends Annotation> cacheKeyInvocationContext)
          Called for each intercepted method invocation.
 

Method Detail

generateCacheKey

CacheKey generateCacheKey(CacheKeyInvocationContext<? extends Annotation> cacheKeyInvocationContext)
Called for each intercepted method invocation. Generate a CacheKey from the CacheKeyInvocationContext data.

Parameters:
cacheKeyInvocationContext - Information about the intercepted method invocation
Returns:
A non-null cache key for the invocation.


Copyright © 2012. All Rights Reserved.