public abstract class MRegistry
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
MRegistry()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the registry
|
void |
destroy()
internal use - do no document
|
java.util.Enumeration |
elements()
Enumerate over the list of objects.
|
java.lang.Object |
getTypedObject(java.lang.String name,
java.lang.Class type)
Retrieve the object whose name and type are specified.
|
java.util.Enumeration |
keys()
Enumerate over the list of keys to the objects.
|
boolean |
putObject(java.lang.String name,
java.lang.Object obj)
Bind the name to the object; if there is already an association,
false is returned to signal no-op; else true is returned
|
java.lang.Object |
removeObject(java.lang.String name)
Remove the object; return the object just removed.
|
protected java.lang.Object |
removeObject(java.lang.String name,
java.lang.Object obj)
internal use only - do not document
|
public java.lang.Object getTypedObject(java.lang.String name, java.lang.Class type)
public boolean putObject(java.lang.String name, java.lang.Object obj)
public java.lang.Object removeObject(java.lang.String name)
protected java.lang.Object removeObject(java.lang.String name, java.lang.Object obj)
Entry to be removed must match both in key ( name given ) and value ( object is compared by '==' operator ). Return the object just removed; null if none matches
public java.util.Enumeration keys()
public java.util.Enumeration elements()
public void clear()
public void destroy()
clear this registry and destroy it.