public class ComponentContainer extends Object implements Container
ComponentConfigCache
defined in ComponentConfig
to keep track of loaded componentsConstructor and Description |
---|
ComponentContainer() |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Return the container name.
|
void |
init(List<StartupCommand> ofbizCommands,
String name,
String configFile)
Initialize the container.
|
boolean |
start()
Start the container process.
|
void |
stop()
Stop the container process.
|
public static final String module
public void init(List<StartupCommand> ofbizCommands, String name, String configFile) throws ContainerException
Container
init
in interface Container
ofbizCommands
- Command-line arguments.name
- Unique name of the container's instance.configFile
- Location of the configuration file used to load this container.ContainerException
- If an error was encountered. Throwing this exception
will halt container loading, so it should be thrown only when other containers
might depend on this one.public boolean start() throws ContainerException
Container
start
in interface Container
true
if the process started.ContainerException
- If an error was encountered.Container.start()
public void stop() throws ContainerException
Container
stop
in interface Container
ContainerException
- If an error was encountered.Container.stop()