| java.lang.Object com.jcorporate.expresso.kernel.internal.ContainerImplBase
All known Subclasses: com.jcorporate.expresso.kernel.DefaultContainerImpl,
ContainerImplBase | abstract public class ContainerImplBase implements ComponentContainer(Code) | | This class provides a basic implementation of the ComponentContainer interface.
the majority of the information such as how container references are stored are implemented
by the subclass
author: Michael Rimov version: $Revision: 1.6 $ on $Date: 2004/11/17 20:48:16 $ since: Expresso 5.1 |
ContainerImplBase | public ContainerImplBase()(Code) | | |
addComponent | abstract public void addComponent(ExpressoComponent newComponent)(Code) | | To register the component for control by the Component Manager. This will
in essense transfer the control of ther service to the Component Manager.
This will often be called by the Configuration Bootstrap system.
Parameters: newComponent - the component to install |
destroyContainer | public void destroyContainer()(Code) | | |
getChildComponents | abstract public Map getChildComponents()(Code) | | Retrieves a list of instances of all contained ExpressoComponents. Use
this for iterating through the components of a current 'context'. Do not
attempt to modify the map given. Either add or remove a component through
the addComponent or removeComponent methods.
Read only map of the components. |
getContainerComponent | public Containable getContainerComponent()(Code) | | Return the 'wrapped' container ExpressoComponent.
Containable |
getParentContainer | public ComponentContainer getParentContainer()(Code) | | Return the parent container
ContainerImpl interface |
installComponent | abstract public void installComponent(ExpressoComponent newComponent, InstallationOptions installOptions, InstallLog log)(Code) | | Install a component into the system. If newComponent implements
installable then it shall be installed. After that, the component
is added.
Parameters: newComponent - An instance of the component to install. Parameters: log - a Logger-like interface to a component tha records the processof the installation including any errors, etc. Parameters: installOptions - the installation options |
isComponentExists | abstract public boolean isComponentExists(String componentName)(Code) | | Query the container to see if a particular service name is installed
in the system
Parameters: componentName - the name of the component to query for. true if the service is installed and running. |
locateComponent | abstract public ExpressoComponent locateComponent(String componentName)(Code) | | Locates an Expresso Service for use by a client.
Parameters: componentName - the name of the service to locate. ExpressoService. throws: IllegalArgumentException - if the service cannot be found. throws: IllegalStateException - if the service exists, but is not in a'runnable' state due to some configuration error or other unforeseenissue. |
removeComponent | abstract public void removeComponent(String componentName)(Code) | | Removes a component from this container.
Parameters: componentName - The name of the component to remove. |
setContainerComponent | public void setContainerComponent(Containable newComponent)(Code) | | Sets the nested component. This is usually called by the system
factory.
Parameters: newComponent - the component that is the 'container' for this implementation |
setParentContainer | public void setParentContainer(ComponentContainer newParent)(Code) | | Set the parent container of this container
Parameters: newParent - the new Parent Container |
uninstallComponent | abstract public void uninstallComponent(String componentName, InstallationOptions installOptions, InstallLog log)(Code) | | Uninstalls the component. If the component implements
installable then it shall be uninstalled. After that, it shall
be removed.
Parameters: componentName - the name of the component to uninstall Parameters: log - a Logger-like interface to a component tha records the processof the installation including any errors, etc. Parameters: installOptions - the Installation Options bean |
|
|