|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.stratum.component.ComponentLoader
Loader for Components implementing the lifecyle Interfaces. NOTE: This class is in its infancy and will more than likely change.
| Constructor Summary | |
ComponentLoader(org.apache.commons.configuration.Configuration configuration)
Constructor |
|
| Method Summary | |
org.apache.commons.configuration.Configuration |
getConfiguration()
Support method for testing the constructor |
java.lang.Object[] |
load()
Load all the components listed in the ComponentLoader's configuration. |
java.lang.Object |
loadComponent(java.lang.String className,
java.lang.String configFile,
org.apache.commons.configuration.Configuration additionalConfig)
load the given component, configure it with the given config file, and initialize it. |
void |
setConfiguration(org.apache.commons.configuration.Configuration configuration)
Set the configuration for this ComponentLoader |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ComponentLoader(org.apache.commons.configuration.Configuration configuration)
configuration - | Method Detail |
public void setConfiguration(org.apache.commons.configuration.Configuration configuration)
configuration - Configurationpublic org.apache.commons.configuration.Configuration getConfiguration()
public java.lang.Object[] load()
Load all the components listed in the ComponentLoader's configuration. Log any errors, but throw no exceptions if components cannot be loaded.
Configuration notes: component.name=NAME component.NAME.classname = com.mycompany.components.SomeComponent component.NAME.config =
path/to/SomeComponent.properties
public java.lang.Object loadComponent(java.lang.String className,
java.lang.String configFile,
org.apache.commons.configuration.Configuration additionalConfig)
Initializable and Configurable interfaces.
className - the String class name of the component to loadconfigFile - the String path name of the component's config fileadditionalConfig - TODO: DOCUMENT ME!
Initializable,
Configurable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||