com.googlecode.ehcache.annotations.key
Interface CacheKeyGenerator<T extends java.io.Serializable>

All Known Implementing Classes:
AbstractCacheKeyGenerator, AbstractDeepCacheKeyGenerator, AbstractHashingCacheKeyGenerator, DelegateCacheKeyGenerator, HashCodeCacheKeyGenerator, ListCacheKeyGenerator, MessageDigestCacheKeyGenerator, ReflectionHashCodeCacheKeyGenerator, SpELCacheKeyGenerator, StringCacheKeyGenerator

public interface CacheKeyGenerator<T extends java.io.Serializable>

Generates a unique key based on the description of an invocation to an intercepted method.

Author:
Alex Ruiz

Method Summary
 T generateKey(MethodInvocation methodInvocation)
          Generates the key for a cache entry.
 T generateKey(java.lang.Object... data)
          Generates the key for a cache entry.
 

Method Detail

generateKey

T generateKey(MethodInvocation methodInvocation)
Generates the key for a cache entry.

Parameters:
methodInvocation - the description of an invocation to the intercepted method.
Returns:
the created key, will never be null and will be Serializable

generateKey

T generateKey(java.lang.Object... data)
Generates the key for a cache entry.

Parameters:
data - the objects to use when generating the key
Returns:
the created key, will never be null and will be Serializable


Copyright © 2011. All Rights Reserved.