org.ofbiz.base.container
Class ContainerLoader

java.lang.Object
  extended by org.ofbiz.base.container.ContainerLoader
All Implemented Interfaces:
StartupLoader

public class ContainerLoader
extends java.lang.Object
implements StartupLoader

ContainerLoader - StartupLoader for the container


Field Summary
protected  java.lang.String configFile
           
static java.lang.String CONTAINER_CONFIG
           
protected  java.util.List<Container> loadedContainers
           
static java.lang.String module
           
static Container rmiLoadedContainer
           
 
Constructor Summary
ContainerLoader()
           
 
Method Summary
 void load(Start.Config config, java.lang.String[] args)
          Load a startup class
static Container loadContainers(java.lang.String config, java.lang.String[] args)
           
 void start()
          Start the startup class
 void unload()
          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

CONTAINER_CONFIG

public static final java.lang.String CONTAINER_CONFIG
See Also:
Constant Field Values

loadedContainers

protected java.util.List<Container> loadedContainers

configFile

protected java.lang.String configFile

rmiLoadedContainer

public static Container rmiLoadedContainer
Constructor Detail

ContainerLoader

public ContainerLoader()
Method Detail

load

public void load(Start.Config config,
                 java.lang.String[] args)
          throws StartupException
Description copied from interface: StartupLoader
Load a startup class

Specified by:
load in interface StartupLoader
Parameters:
config - Startup config
args - Input arguments
Throws:
StartupException
See Also:
StartupLoader.load(Start.Config, String[])

start

public void start()
           throws StartupException
Description copied from interface: StartupLoader
Start the startup class

Specified by:
start in interface StartupLoader
Throws:
StartupException
See Also:
StartupLoader.start()

unload

public void unload()
            throws StartupException
Description copied from interface: StartupLoader
Stop the container

Specified by:
unload in interface StartupLoader
Throws:
StartupException
See Also:
StartupLoader.unload()

loadContainers

public static Container loadContainers(java.lang.String config,
                                       java.lang.String[] args)
                                throws StartupException
Throws:
StartupException