org.apache.manifoldcf.core.threadcontext
Class ThreadContext
java.lang.Object
org.apache.manifoldcf.core.threadcontext.ThreadContext
- All Implemented Interfaces:
- IThreadContext
public class ThreadContext
- extends java.lang.Object
- implements IThreadContext
Thread context implementation
|
Field Summary |
static java.lang.String |
_rcsid
|
protected java.util.Hashtable |
hashtable
|
|
Method Summary |
java.lang.Object |
get(java.lang.Object key)
Retrieve a named object from the context. |
void |
save(java.lang.Object key,
java.lang.Object object)
Set a named object into the context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
hashtable
protected java.util.Hashtable hashtable
ThreadContext
public ThreadContext()
save
public void save(java.lang.Object key,
java.lang.Object object)
- Set a named object into the context.
- Specified by:
save in interface IThreadContext
- Parameters:
key - is the name of the object (usually a string)object - is the object to save, or null if the object is to be
destroyed instead.
get
public java.lang.Object get(java.lang.Object key)
- Retrieve a named object from the context.
Use an equivalent key to retrieve what was previously saved.
If no such object exists, null will be returned.
- Specified by:
get in interface IThreadContext
- Parameters:
key - is the object's key (usually a string)
- Returns:
- the object, or null.