public class CacheKeyMethodStoreImpl extends Object implements CacheKeyMethodStore
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_KEY_METHOD_NAME |
Constructor and Description |
---|
CacheKeyMethodStoreImpl() |
Modifier and Type | Method and Description |
---|---|
Method |
getKeyMethod(Class<?> keyClass)
Gets method used to calculate cache key on given class.
|
public static final String DEFAULT_KEY_METHOD_NAME
public Method getKeyMethod(Class<?> keyClass) throws NoSuchMethodException
CacheKeyMethodStore
getKeyMethod
in interface CacheKeyMethodStore
NoSuchMethodException
- if class doesn't contain method annotated by CacheKeyMethod
or toString() methodCopyright © 2019. All rights reserved.