gov.nasa.worldwindx.applications.worldwindow.core
Class Registry
java.lang.Object
gov.nasa.worldwindx.applications.worldwindow.core.Registry
public class Registry
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Registry
public Registry()
createAndRegisterObject
public Object createAndRegisterObject(String objectID,
Object classOrName)
throws IllegalAccessException,
InstantiationException,
ClassNotFoundException
- Throws:
IllegalAccessException
InstantiationException
ClassNotFoundException
createObject
public Object createObject(String className)
- Parameters:
className - the full name, including package names, of the component to create
- Returns:
- the new component
- Throws:
RuntimeException - if the Object could not be created
IllegalArgumentException - if className is null or zero length
createRegistryObject
public Object createRegistryObject(Object classOrName)
throws ClassNotFoundException,
IllegalAccessException,
InstantiationException
- Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException
getObjects
public Collection<Object> getObjects()
getObjectsOfType
public Object[] getObjectsOfType(String className)
getRegisteredObject
public Object getRegisteredObject(String objectID)
implementsInterface
protected boolean implementsInterface(Class interfaceClass,
Class compareClass)
registerObject
public Object registerObject(String objectID,
Object o)