|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComponentLoader
The ComponentLoader provides a mechanism for the ServiceBean to load classes and resources (such as native libraries) making them (and the resources it uses) available to all services
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 registered
void 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 name
boolean testResourceExistence(String name)
The name of a resource is a '/ '-separated path name that identifies the resource.
name - The resource name
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||