jtge.engine.data
Interface IContext

All Known Implementing Classes:
AbstractContext, Context

public interface IContext

Defines a container of data.

Version:
$Revision: 1.5 $ $Date: 2005/09/14 18:50:05 $
Author:
Mathieu Champlon

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.
 

Method Detail

put

public void put(java.lang.Object key,
                java.lang.Object data)
Add a data to the context.

Parameters:
key - the data unique identifier
data - the data

get

public java.lang.Object get(java.lang.Object key)
Retrieve a data based on its identifier.

Parameters:
key - the data unique identifier
Returns:
the data

register

public 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.

Parameters:
callback - a callback


Copyright © 2003-2005 . All Rights Reserved.