org.ofbiz.base.container
Class ComponentContainer

java.lang.Object
  extended by org.ofbiz.base.container.ComponentContainer
All Implemented Interfaces:
Container

public class ComponentContainer
extends java.lang.Object
implements Container

ComponentContainer - StartupContainer implementation for Components

Example ofbiz-container.xml configuration:

   
 


Field Summary
protected  Classpath classPath
           
protected  java.lang.String configFileLocation
           
static java.lang.String module
           
 
Constructor Summary
ComponentContainer()
           
 
Method Summary
 void init(java.lang.String[] args, java.lang.String configFile)
          Initialize the container
static void loadComponents(boolean updateClasspath)
          Static method for easy loading of components for use when the container system is not.
 void loadComponents(java.lang.String loaderConfig, boolean updateClasspath)
           
 boolean start()
          Start the container
 void stop()
          Stop the container
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

classPath

protected Classpath classPath

configFileLocation

protected java.lang.String configFileLocation
Constructor Detail

ComponentContainer

public ComponentContainer()
Method Detail

init

public void init(java.lang.String[] args,
                 java.lang.String configFile)
          throws ContainerException
Description copied from interface: Container
Initialize the container

Specified by:
init in interface Container
Parameters:
args - args from calling class
configFile - Location of master OFBiz configuration file
Throws:
ContainerException
See Also:
Container.init(java.lang.String[], java.lang.String)

start

public boolean start()
              throws ContainerException
Description copied from interface: Container
Start the container

Specified by:
start in interface Container
Returns:
true if server started
Throws:
ContainerException
See Also:
Container.start()

loadComponents

public void loadComponents(java.lang.String loaderConfig,
                           boolean updateClasspath)
                    throws AlreadyLoadedException,
                           ComponentException
Throws:
AlreadyLoadedException
ComponentException

stop

public void stop()
          throws ContainerException
Description copied from interface: Container
Stop the container

Specified by:
stop in interface Container
Throws:
ContainerException
See Also:
Container.stop()

loadComponents

public static void loadComponents(boolean updateClasspath)
                           throws AlreadyLoadedException,
                                  ComponentException
Static method for easy loading of components for use when the container system is not.

Parameters:
updateClasspath - Tells the component loader to update the classpath, and thread classloader
Throws:
AlreadyLoadedException
ComponentException