public final class ContextKeyStore
extends java.lang.Object
ContextKeyStore
is used to store and access transient objects in an application. This class is not meant to be extended by clients.
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
get(java.lang.String key)
Registers a new key value pair.
|
static boolean |
remove(java.lang.String key)
Access a value by delivering the corresponding key.
|
static java.lang.String |
resolve(java.lang.String text)
Removes a value by delivering the corresponding key.
|
static void |
set(java.lang.String key,
java.lang.Object value)
Sets the
value for a specific key . |
public static void set(java.lang.String key, java.lang.Object value)
value
for a specific key
. Both,
key
and value
, must not be null.key
- value
- public static java.lang.Object get(java.lang.String key)
key
- the key to identify the valuevalue
- any object to storepublic static boolean remove(java.lang.String key)
key
- the key to identify the valuepublic static java.lang.String resolve(java.lang.String text)
key
- the key to identify the value