|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Context
Object context.
The context stores key-value pairs bound to a client. For every method invocation identical clients get identical contexts.
ContextFactory| Method Summary | |
|---|---|
Object |
getObject(String key)
Gets an object from the context. |
Collection |
getObjectKeys()
Gets a collection containing all object keys from the context. |
Object |
removeObject(String key)
Removes an object from the context. |
Object |
setObject(String key,
Object o)
Sets an object in the context. |
| Method Detail |
|---|
Object getObject(String key)
key - Key of the object to return.
key or null if no
such object is held by the context. Returning null may also
indicate that the context associated null with the specified key
if the implementation supports null values.
NullPointerException - if key is null.Collection getObjectKeys()
Object removeObject(String key)
key - Key of the object to remove.
key or null
if there was no object for key. Returning null may
also indicate that the context previously associated null with
the specified key if the implementation supports null values.
NullPointerException - if key is null.
Object setObject(String key,
Object o)
key - Key to store o with.o - Object to store with key key.
key or null
if there was no object for key. Returning null may
also indicate that the context previously associated null with
the specified key if the implementation supports null values.
NullPointerException - if key is null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||