A registry to support (de)serialization of objects (over the lifetime of the VM). It uses weak references to allow entries to be garbage-collected when no longer used.
getRetrieve the object registered with the supplied key.
key- the key.
- the registered object, or
nullif no matching EvaluationStrategy can be found.
getKeyRetrieves the registry key for the given object.
obj- the object for which to retrieve the registry key.
- the registry key with which the supplied object can be retrieved, or
nullif the supplied object is not in the registry.
registerAdd an object to the registry and returns the registry key. If the object is already present, the operation simply returns the key with which it is currently registered.
obj- the object to register
- the key with which the object is registered.