public interface ComponentLoader
| Modifier and Type | Method and Description | 
|---|---|
void | 
addComponent(String name,
            URL[] urls)
Registers a class name, and the code source which is used as the search path to load the
 class. 
 | 
Object | 
load(String name)
Creates an Object which has been added to the ComponentLoader using the addSystemComponent
 method, or is in the classpath of the ComponentLoader. 
 | 
boolean | 
testComponentExistence(String name)
Test whether a named component (Class) exists. 
 | 
boolean | 
testResourceExistence(String name)
Test whether a named resource exists. 
 | 
Object load(String name) throws ClassNotFoundException, IllegalAccessException, InstantiationException
name - The name of the class. The resulting class will be loaded and a new instance of
             the class created using a zero-arg contructor.IllegalAccessException - - If the Class or its nullary constructor is not accessible.InstantiationException - - If this Class represents an abstract class, an interface, an
                                array class, a primitive type, or void; or if the class has no
                                nullary constructor; or if the instantiation fails for some
                                other reason.ClassNotFoundException - - If the class cannot be located by the class loader or it has
                                not been registeredvoid addComponent(String name, URL[] urls)
name - The name of the classurls - Codebase for the class identified by the name parameterboolean testComponentExistence(String name)
name - The component nameboolean testResourceExistence(String name)
The name of a resource is a '/ '-separated path name that identifies the resource.
name - The resource nameCopyright © GigaSpaces.