| org.sakaiproject.thread_local.api.ThreadLocalManager
All known Subclasses: org.sakaiproject.thread_local.impl.ThreadLocalComponent,
ThreadLocalManager | public interface ThreadLocalManager (Code) | |
ThreadLocalManager provides registration and discovery of objects bound to the "current" request processing or thread.
Clients who have objects to bind can set/get them at will - the Sakai Framework assures that the entire set of objects bound to current are cleared when the request processing is complete.
|
Method Summary | |
void | clear() Remove all objects bound to the current thread. | Object | get(String name) Find the named object bound to the current thread.
Parameters: name - The binding name. | void | set(String name, Object value) Bind this object under this name with the current thread, or remove if the value is null. |
clear | void clear()(Code) | | Remove all objects bound to the current thread.
|
get | Object get(String name)(Code) | | Find the named object bound to the current thread.
Parameters: name - The binding name. The object bound by this name, or null if not found. |
set | void set(String name, Object value)(Code) | | Bind this object under this name with the current thread, or remove if the value is null.
Parameters: name - The binding name. Parameters: value - The object to bind, or null to un-bind this name. |
|
|