|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.kernel.management.ComponentFactory
This class provides several helper functions to help instantiate a particular component or runtime.
| Field Summary | |
protected static ComponentFactory |
instance
The actual singleton instance |
| Constructor Summary | |
protected |
ComponentFactory()
Default constructor |
| Method Summary | |
void |
configureComponent(ComponentConfig config,
ExpressoComponent ec)
Configures a single component. |
ExpressoComponent |
constructComponent(ComponentContainer parent,
ComponentConfig config)
Constructs a Component. |
ComponentContainer |
constructComponentContainer()
Constructs a blank component container and provides an eventual single point to change to allow people to swap different implementations of their component containers. |
ComponentConfig |
constructDefaultConfig(ExpressoComponent component)
This class provides the ability to instantiated a blank component initialized only with the default values provided by the component's metadata. |
RootContainerInterface |
constructRootContainer()
Constructs a blank root container that has not been initialized yet, but has metadata fully loaded |
static ComponentFactory |
getInstance()
Retrieve an instance of the component factory. |
void |
initComponent(ExpressoComponent ec)
Initialize the component provided if the component implements the
ComponentLifecycle interface |
void |
startComponent(ExpressoComponent ec)
Starts a component if it implements the Startable interface. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final ComponentFactory instance
| Constructor Detail |
protected ComponentFactory()
| Method Detail |
public static final ComponentFactory getInstance()
public void startComponent(ExpressoComponent ec)
Startable interface.
ec - the component to 'start'.
public ComponentConfig constructDefaultConfig(ExpressoComponent component)
throws ConfigurationException
component - the component to retrieve a blank configuration for.
ConfigurationException - upon error.public ComponentContainer constructComponentContainer()
public RootContainerInterface constructRootContainer()
throws ConfigurationException
ConfigurationException - upon error
public ExpressoComponent constructComponent(ComponentContainer parent,
ComponentConfig config)
throws ConfigurationException
parent - the ComponentContainer that is the parent of this componentconfig - The component configuration for the object
ConfigurationException - upon errorpublic void initComponent(ExpressoComponent ec)
ComponentLifecycle interface
ec - The ExpressoComponent
public void configureComponent(ComponentConfig config,
ExpressoComponent ec)
throws ConfigurationException
config - the ComponentConfig for this componentec - the Component to configure
ConfigurationException - upon error.
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||