NASA World Wind

gov.nasa.worldwindx.applications.worldwindow.core
Class Registry

java.lang.Object
  extended by gov.nasa.worldwindx.applications.worldwindow.core.Registry

public class Registry
extends Object


Constructor Summary
Registry()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Registry

public Registry()
Method Detail

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)

NASA World Wind