| java.lang.Object com.jcorporate.expresso.kernel.internal.ContainerImplBase com.jcorporate.expresso.kernel.DefaultContainerImpl
DefaultContainerImpl | public class DefaultContainerImpl extends ContainerImplBase (Code) | | 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
author: Michael Rimov |
DefaultContainerImpl | public DefaultContainerImpl()(Code) | | Basic constructor.
|
_getParentContainer | protected ComponentContainer _getParentContainer()(Code) | | getParentContainer without the locking
ComponentContainer instance |
_isComponentExists | protected boolean _isComponentExists(String componentName)(Code) | | Version of isComponentExists without the locking. Prevents deadlocks
for internal use.
Parameters: componentName - the name of the component true if the component exists |
addComponent | 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) | | Global Container Destruction. Iterate depth first through all the subcompoennts,
possibly calling stop, and possibly calling destroy.
|
finalize | protected void finalize() throws java.lang.Throwable(Code) | | 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. Of course, since finalize() doesn't necessarily
get called, this isn't a guaranteed fixit.. but at least it's a shot
in the right direction
|
getChildComponents | 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. |
getParentContainer | public ComponentContainer getParentContainer()(Code) | | Return the parent container
ContainerImpl interface |
installComponent | public void installComponent(ExpressoComponent newComponent, InstallationOptions installOptions, InstallLog installLog)(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: installOptions - any installation options [optional] Parameters: installLog - a Logger-like interface to a component tha records the processof the installation including any errors, etc. |
isComponentExists | 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 | 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 | public void removeComponent(String componentName)(Code) | | Removes a component from this container.
Parameters: componentName - The name of the component to remove. |
setParentContainer | public void setParentContainer(ComponentContainer newParent)(Code) | | Set the parent container of this container
Parameters: newParent - the new Parent Container |
uninstallComponent | public void uninstallComponent(String componentName, InstallationOptions installOptions, InstallLog installLog)(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: installLog - a Logger-like interface to a component tha records the processof the installation including any errors, etc. Parameters: installOptions - any installation options to use. |
|
|