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