@Deprecated public final class ContextMap extends Object implements Serializable
| Constructor and Description |
|---|
ContextMap()
Deprecated.
Default constructor.
|
ContextMap(ContextMap parent)
Deprecated.
Constructor that sets parent contextMap.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
bind(ContextMap context)
Deprecated.
Bind a particular ContextMap to current thread.
|
void |
clear()
Deprecated.
Empty the context map.
|
Object |
get(String key)
Deprecated.
Get an entry from the context.
|
Object |
get(String key,
Object defaultObject)
Deprecated.
Get an entry from the context.
|
static ContextMap |
getCurrentContext()
Deprecated.
Get the Current ContextMap.
|
static ContextMap |
getCurrentContext(boolean autocreate)
Deprecated.
Get the Current ContextMap.
|
int |
getSize()
Deprecated.
Get the number of contexts in map.
|
boolean |
isReadOnly()
Deprecated.
Determine if context is read-only.
|
void |
makeReadOnly()
Deprecated.
Make the context read-only.
|
void |
set(String key,
Object value)
Deprecated.
Set a value in context
|
public ContextMap()
public ContextMap(ContextMap parent)
parent - the parent ContextMappublic static final ContextMap getCurrentContext()
public static final ContextMap getCurrentContext(boolean autocreate)
autocreate - true if a ContextMap is to be created if it doesn't existpublic static final void bind(ContextMap context)
context - the context map (may be null)public void makeReadOnly()
public boolean isReadOnly()
public void clear()
public Object get(String key, Object defaultObject)
key - the key to mapdefaultObject - a default object to return if key does not existpublic Object get(String key)
key - the key to mappublic void set(String key, Object value)
key - the keyvalue - the value (may be null)public int getSize()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.