SimpleKeyGenerator
or custom KeyGenerator
implementations based on hash codes@Deprecated public class DefaultKeyGenerator extends java.lang.Object implements KeyGenerator
null
parameters given.
NOTE: As this implementation returns only a hash of the parameters
it is possible for key collisions to occur. Since Spring 4.0 the
SimpleKeyGenerator
is used when no explicit key generator
has been defined. This class remains for applications that do not
wish to migrate to the SimpleKeyGenerator
.
Modifier and Type | Field and Description |
---|---|
static int |
NO_PARAM_KEY
Deprecated.
|
static int |
NULL_PARAM_KEY
Deprecated.
|
Constructor and Description |
---|
DefaultKeyGenerator()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
generate(java.lang.Object target,
java.lang.reflect.Method method,
java.lang.Object... params)
Deprecated.
Generate a key for the given method and its parameters.
|
public static final int NO_PARAM_KEY
public static final int NULL_PARAM_KEY
public java.lang.Object generate(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object... params)
KeyGenerator
generate
in interface KeyGenerator
target
- the target instancemethod
- the method being calledparams
- the method parameters (with any var-args expanded)