Package org.apache.ofbiz.service
Class ServiceContainer
java.lang.Object
org.apache.ofbiz.service.ServiceContainer
- All Implemented Interfaces:
Container
A container for the service engine.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
deregister
(String dispatcherName) static LocalDispatcher
getLocalDispatcher
(String dispatcherName, Delegator delegator) getName()
Return the container name.void
init
(List<StartupCommand> ofbizCommands, String name, String configFile) Initialize the container.static LocalDispatcher
removeFromCache
(String dispatcherName) boolean
start()
Start the container process.void
stop()
Stop the container process.
-
Constructor Details
-
ServiceContainer
public ServiceContainer()
-
-
Method Details
-
init
public void init(List<StartupCommand> ofbizCommands, String name, String configFile) throws ContainerException Description copied from interface:Container
Initialize the container. This method must not block - implementations should initialize internal structures and then return.- Specified by:
init
in interfaceContainer
- Parameters:
ofbizCommands
- Command-line arguments.name
- Unique name of the container's instance.configFile
- alwaysnull
but used to be the location of the global container configuration file which does not exist anymore- Throws:
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.
-
start
public boolean start()Description copied from interface:Container
Start the container process. This method must not block - implementations that require thread blocking must create a separate thread and then return. -
stop
public void stop()Description copied from interface:Container
Stop the container process. This method must not block. -
getName
Description copied from interface:Container
Return the container name. -
getLocalDispatcher
-
deregister
-
removeFromCache
-
getAllDispatcherNames
-