public class DefaultContext extends AbstractContext
Modifier and Type | Field and Description |
---|---|
protected static String |
ERROR_KEY_BLANK |
parentContext
Constructor and Description |
---|
DefaultContext() |
DefaultContext(Context parentContext) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected Object |
doGet(String key) |
boolean |
hasKey(String key)
Searches for the key in this context only
|
Set<String> |
keySet()
Returns a
Set view of the keys contained in this context. |
void |
put(String key,
Object value) |
void |
putAt(String key,
Object value) |
Object |
remove(String key) |
containsKey, get, get, getAt, getAt
protected static final String ERROR_KEY_BLANK
@Nullable protected Object doGet(@Nonnull String key)
doGet
in class AbstractContext
public boolean hasKey(@Nonnull String key)
Context
key
- the key to searchpublic void destroy()
destroy
in interface Context
destroy
in class AbstractContext