public class Registry
extends java.lang.Object
Constructor and Description |
---|
Registry() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createAndRegisterObject(java.lang.String objectID,
java.lang.Object classOrName) |
java.lang.Object |
createObject(java.lang.String className) |
java.lang.Object |
createRegistryObject(java.lang.Object classOrName) |
java.util.Collection<java.lang.Object> |
getObjects() |
java.lang.Object[] |
getObjectsOfType(java.lang.String className) |
java.lang.Object |
getRegisteredObject(java.lang.String objectID) |
protected boolean |
implementsInterface(java.lang.Class interfaceClass,
java.lang.Class compareClass) |
java.lang.Object |
registerObject(java.lang.String objectID,
java.lang.Object o) |
public java.lang.Object createAndRegisterObject(java.lang.String objectID, java.lang.Object classOrName) throws java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.ClassNotFoundException
public java.lang.Object createObject(java.lang.String className)
className
- the full name, including package names, of the component to createjava.lang.RuntimeException
- if the Object
could not be createdjava.lang.IllegalArgumentException
- if className
is null or zero lengthpublic java.lang.Object createRegistryObject(java.lang.Object classOrName) throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
public java.util.Collection<java.lang.Object> getObjects()
public java.lang.Object[] getObjectsOfType(java.lang.String className)
public java.lang.Object getRegisteredObject(java.lang.String objectID)
protected boolean implementsInterface(java.lang.Class interfaceClass, java.lang.Class compareClass)
public java.lang.Object registerObject(java.lang.String objectID, java.lang.Object o)