|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jtge.engine.data.Context
Implements a container of data.
Constructor Summary | |
Context()
Create a context. |
Method Summary | |
java.lang.Object |
get(java.lang.Object key)
Retrieve a data based on its identifier. |
void |
put(java.lang.Object key,
java.lang.Object data)
Add a data to the context. |
void |
register(java.lang.Object callback)
Register a callback. Any update( Type data ) method of this object will be called when the type of its data argument is compatible with the type of a data set by calling the set() method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Context()
Method Detail |
public final void put(java.lang.Object key, java.lang.Object data)
put
in interface IContext
key
- the data unique identifierdata
- the datapublic final java.lang.Object get(java.lang.Object key)
get
in interface IContext
key
- the data unique identifier
public final void register(java.lang.Object callback)
Any update( Type data ) method of this object will be called when the type of its data argument is compatible with the type of a data set by calling the set() method.
register
in interface IContext
callback
- a callback
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |