|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.ehcache.annotations.key.AbstractCacheKeyGenerator<T>
com.googlecode.ehcache.annotations.key.AbstractDeepCacheKeyGenerator<ListCacheKeyGenerator.ListKeyGenerator,ReadOnlyList<?>>
com.googlecode.ehcache.annotations.key.ListCacheKeyGenerator
public class ListCacheKeyGenerator
| Nested Class Summary | |
|---|---|
static class |
ListCacheKeyGenerator.ListKeyGenerator
|
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_BEAN_NAME
Name of the bean this generator is registered under using the default constructor. |
| Constructor Summary | |
|---|---|
ListCacheKeyGenerator()
|
|
ListCacheKeyGenerator(boolean includeMethod,
boolean includeParameterTypes)
|
|
| Method Summary | |
|---|---|
protected void |
append(ListCacheKeyGenerator.ListKeyGenerator generator,
java.lang.Object e)
Append an object to the key. |
protected void |
appendGraphCycle(ListCacheKeyGenerator.ListKeyGenerator generator,
java.lang.Object o)
Called if a graph cycle is detected. |
protected void |
appendNull(ListCacheKeyGenerator.ListKeyGenerator generator)
Called if a null value is found in the object graph |
protected void |
beginRecursion(ListCacheKeyGenerator.ListKeyGenerator generator,
java.lang.Object e)
Called before each array/ Iterable/Map is handled. |
protected void |
endRecursion(ListCacheKeyGenerator.ListKeyGenerator generator,
java.lang.Object e)
Called after each array/ Iterable/Map is handled. |
ReadOnlyList<?> |
generateKey(ListCacheKeyGenerator.ListKeyGenerator generator)
Generate the cache key from the generator |
ListCacheKeyGenerator.ListKeyGenerator |
getGenerator(java.lang.Object... data)
Create the object used to generate the key. |
| Methods inherited from class com.googlecode.ehcache.annotations.key.AbstractDeepCacheKeyGenerator |
|---|
append, append, append, append, append, append, append, append, deepHashCode, deepHashCode, deepHashCode, deepHashCode, generateKey, getReflectionHelper, isUseReflection, reflectionDeepHashCode, setReflectionHelper, setUseReflection, shouldReflect, toString |
| Methods inherited from class com.googlecode.ehcache.annotations.key.AbstractCacheKeyGenerator |
|---|
generateKey, isCheckforCycles, isIncludeMethod, isIncludeParameterTypes, register, setCheckforCycles, setIncludeMethod, setIncludeParameterTypes, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_BEAN_NAME
| Constructor Detail |
|---|
public ListCacheKeyGenerator()
AbstractCacheKeyGenerator.AbstractCacheKeyGenerator()
public ListCacheKeyGenerator(boolean includeMethod,
boolean includeParameterTypes)
AbstractCacheKeyGenerator.AbstractCacheKeyGenerator(boolean, boolean)| Method Detail |
|---|
public ListCacheKeyGenerator.ListKeyGenerator getGenerator(java.lang.Object... data)
AbstractDeepCacheKeyGeneratorAbstractDeepCacheKeyGenerator.deepHashCode(G, java.lang.Object[]) and
AbstractDeepCacheKeyGenerator.append(G, java.lang.Object) call.
getGenerator in class AbstractDeepCacheKeyGenerator<ListCacheKeyGenerator.ListKeyGenerator,ReadOnlyList<?>>public ReadOnlyList<?> generateKey(ListCacheKeyGenerator.ListKeyGenerator generator)
AbstractDeepCacheKeyGenerator
generateKey in class AbstractDeepCacheKeyGenerator<ListCacheKeyGenerator.ListKeyGenerator,ReadOnlyList<?>>
protected void beginRecursion(ListCacheKeyGenerator.ListKeyGenerator generator,
java.lang.Object e)
AbstractDeepCacheKeyGeneratorIterable/Map is handled. Useful for sub-classes that
want to be aware of the tree structure of the object graph.
beginRecursion in class AbstractDeepCacheKeyGenerator<ListCacheKeyGenerator.ListKeyGenerator,ReadOnlyList<?>>
protected void endRecursion(ListCacheKeyGenerator.ListKeyGenerator generator,
java.lang.Object e)
AbstractDeepCacheKeyGeneratorIterable/Map is handled. Useful for sub-classes that
want to be aware of the tree structure of the object graph.
endRecursion in class AbstractDeepCacheKeyGenerator<ListCacheKeyGenerator.ListKeyGenerator,ReadOnlyList<?>>
protected void appendGraphCycle(ListCacheKeyGenerator.ListKeyGenerator generator,
java.lang.Object o)
AbstractDeepCacheKeyGenerator
appendGraphCycle in class AbstractDeepCacheKeyGenerator<ListCacheKeyGenerator.ListKeyGenerator,ReadOnlyList<?>>o - The object that started the cycleprotected void appendNull(ListCacheKeyGenerator.ListKeyGenerator generator)
AbstractDeepCacheKeyGenerator
appendNull in class AbstractDeepCacheKeyGenerator<ListCacheKeyGenerator.ListKeyGenerator,ReadOnlyList<?>>
protected void append(ListCacheKeyGenerator.ListKeyGenerator generator,
java.lang.Object e)
AbstractDeepCacheKeyGenerator
append in class AbstractDeepCacheKeyGenerator<ListCacheKeyGenerator.ListKeyGenerator,ReadOnlyList<?>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||