NextApp Echo3
v3.0.b4

nextapp.echo.webcontainer.util
Class IdTable

java.lang.Object
  extended by nextapp.echo.webcontainer.util.IdTable
All Implemented Interfaces:
java.io.Serializable

public class IdTable
extends java.lang.Object
implements java.io.Serializable

A table which provides an identifier-to-object mapping, with the objects being weakly referenced (i.e., the fact that they are held within this table will not prevent them from being garbage collected). When deserialized by Java serialization API, the references will be hard until purge() is invoked for the first time.

See Also:
Serialized Form

Constructor Summary
IdTable()
           
 
Method Summary
 java.lang.Object getObject(java.lang.String id)
          Retrieves the object associated with the specified identifier.
 void register(nextapp.echo.app.RenderIdSupport object)
          Registers an object with the IdTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdTable

public IdTable()
Method Detail

register

public void register(nextapp.echo.app.RenderIdSupport object)
Registers an object with the IdTable

Parameters:
object - the object to identify

getObject

public java.lang.Object getObject(java.lang.String id)
Retrieves the object associated with the specified identifier.

Parameters:
id - the identifier
Returns:
the object (or null, if the object is not in the queue, perhaps due to having been dereferenced and garbage collected)

NextApp Echo3
v3.0.b4