com.waveset.util
Class ObjectID

java.lang.Object
  extended bycom.waveset.util.ObjectID

public class ObjectID
extends java.lang.Object

Class responsible for maintaining a mapping between objects and a unique identifier for that object. Objects are stored using weak-references such that they will be garbage collected properly. This mechanism is used by the BPE's preview panel to pass an ID for the form to preview.


Constructor Summary
ObjectID()
           
 
Method Summary
static java.lang.String getIDForObject(java.lang.Object object)
          Retrieves a unique id for a given object.
static java.lang.String getIDForObject(java.lang.Object object, boolean reuseIds)
          Retrieves a unique id for a given object.
static int getNumObjects()
          Unit testing hook to make sure we're garbage collecting properly
static java.lang.Object getObjectByID(java.lang.String id)
          Returns the object for the given id, or null if none exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectID

public ObjectID()
Method Detail

getNumObjects

public static int getNumObjects()
Unit testing hook to make sure we're garbage collecting properly


getObjectByID

public static java.lang.Object getObjectByID(java.lang.String id)
Returns the object for the given id, or null if none exists.


getIDForObject

public static java.lang.String getIDForObject(java.lang.Object object)
Retrieves a unique id for a given object.


getIDForObject

public static java.lang.String getIDForObject(java.lang.Object object,
                                              boolean reuseIds)
Retrieves a unique id for a given object.