|
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.internal.ContainerImplBase
com.jcorporate.expresso.kernel.DefaultContainerImpl
This class is the default Container Implementation used by the Expresso Framework. You can change this by modifying the SystemFactory.
It provides basic container usability such as component location, component management, component listeners, etc
| Constructor Summary | |
DefaultContainerImpl()
Basic constructor. |
|
| Method Summary | |
protected ComponentContainer |
_getParentContainer()
getParentContainer without the locking |
protected boolean |
_isComponentExists(String componentName)
Version of isComponentExists without the locking. |
void |
addComponent(ExpressoComponent newComponent)
To register the component for control by the Component Manager. |
void |
destroyContainer()
Global Container Destruction. |
protected void |
finalize()
Just in case..... if all references to the root container have been released and GC is running, then make sure we 'cleanly' destroy all nested components. |
Map |
getChildComponents()
Retrieves a list of instances of all contained ExpressoComponents. |
ComponentContainer |
getParentContainer()
Return the parent container |
void |
installComponent(ExpressoComponent newComponent,
InstallationOptions installOptions,
InstallLog installLog)
Install a component into the system. |
boolean |
isComponentExists(String componentName)
Query the container to see if a particular service name is installed in the system |
ExpressoComponent |
locateComponent(String componentName)
Locates an Expresso Service for use by a client. |
void |
removeComponent(String componentName)
Removes a component from this container. |
void |
setParentContainer(ComponentContainer newParent)
Set the parent container of this container |
void |
uninstallComponent(String componentName,
InstallationOptions installOptions,
InstallLog installLog)
Uninstalls the component. |
| Methods inherited from class com.jcorporate.expresso.kernel.internal.ContainerImplBase |
getContainerComponent, setContainerComponent |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultContainerImpl()
| Method Detail |
public void removeComponent(String componentName)
removeComponent in interface ComponentContainerremoveComponent in class ContainerImplBasecomponentName - The name of the component to remove.public Map getChildComponents()
getChildComponents in interface ComponentContainergetChildComponents in class ContainerImplBasepublic ExpressoComponent locateComponent(String componentName)
locateComponent in interface ComponentContainerlocateComponent in class ContainerImplBasecomponentName - the name of the service to locate.
IllegalArgumentException - if the service cannot be found.
IllegalStateException - if the service exists, but is not in a
'runnable' state due to some configuration error or other unforeseen
issue.
public void installComponent(ExpressoComponent newComponent,
InstallationOptions installOptions,
InstallLog installLog)
installable then it shall be installed. After that, the component
is added.
installComponent in interface ComponentContainerinstallComponent in class ContainerImplBasenewComponent - An instance of the component to install.installOptions - any installation options [optional]installLog - a Logger-like interface to a component tha records the process
of the installation including any errors, etc.
public void uninstallComponent(String componentName,
InstallationOptions installOptions,
InstallLog installLog)
installable then it shall be uninstalled. After that, it shall
be removed.
uninstallComponent in interface ComponentContaineruninstallComponent in class ContainerImplBasecomponentName - the name of the component to uninstallinstallLog - a Logger-like interface to a component tha records the process
of the installation including any errors, etc.installOptions - any installation options to use.public boolean isComponentExists(String componentName)
isComponentExists in interface ComponentContainerisComponentExists in class ContainerImplBasecomponentName - the name of the component to query for.
protected boolean _isComponentExists(String componentName)
componentName - the name of the component
public void addComponent(ExpressoComponent newComponent)
addComponent in interface ComponentContaineraddComponent in class ContainerImplBasenewComponent - the component to installpublic ComponentContainer getParentContainer()
getParentContainer in interface ComponentContainergetParentContainer in class ContainerImplBaseprotected ComponentContainer _getParentContainer()
public void setParentContainer(ComponentContainer newParent)
setParentContainer in interface ComponentContainersetParentContainer in class ContainerImplBasenewParent - the new Parent Containerpublic void destroyContainer()
destroyContainer in interface ComponentContainerdestroyContainer in class ContainerImplBase
protected void finalize()
throws Throwable
Throwable
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||