Package org.apache.ofbiz.base.container
Class ContainerLoader
- java.lang.Object
-
- org.apache.ofbiz.base.container.ContainerLoader
-
- All Implemented Interfaces:
StartupLoader
public class ContainerLoader extends java.lang.Object implements StartupLoader
An object that loads containers (background processes).Normally, instances of this class are created by OFBiz startup code, and client code should not create instances of this class. Client code is responsible for making sure containers are shut down properly.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description ContainerLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
load(Config config, java.util.List<StartupCommand> ofbizCommands)
Start a startup class.void
unload()
Stop the startup class.
-
-
-
Method Detail
-
load
public void load(Config config, java.util.List<StartupCommand> ofbizCommands) throws StartupException
Description copied from interface:StartupLoader
Start a startup class.- Specified by:
load
in interfaceStartupLoader
- Parameters:
config
- Startup config.ofbizCommands
- Command-line arguments.- Throws:
StartupException
- If an error was encountered. Throwing this exception will halt loader loading, so it should be thrown only when OFBiz can't operate without it.- See Also:
StartupLoader.load(Config, List)
-
unload
public void unload() throws StartupException
Description copied from interface:StartupLoader
Stop the startup class. This method must not block.- Specified by:
unload
in interfaceStartupLoader
- Throws:
StartupException
- If an error was encountered.- See Also:
StartupLoader.unload()
-
-