|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ofbiz.base.container.ComponentContainer
public class ComponentContainer
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 |
---|
public static final java.lang.String module
protected Classpath classPath
protected java.lang.String configFileLocation
Constructor Detail |
---|
public ComponentContainer()
Method Detail |
---|
public void init(java.lang.String[] args, java.lang.String configFile) throws ContainerException
Container
init
in interface Container
args
- args from calling classconfigFile
- Location of master OFBiz configuration file
ContainerException
Container.init(java.lang.String[], java.lang.String)
public boolean start() throws ContainerException
Container
start
in interface Container
ContainerException
Container.start()
public void loadComponents(java.lang.String loaderConfig, boolean updateClasspath) throws AlreadyLoadedException, ComponentException
AlreadyLoadedException
ComponentException
public void stop() throws ContainerException
Container
stop
in interface Container
ContainerException
Container.stop()
public static void loadComponents(boolean updateClasspath) throws AlreadyLoadedException, ComponentException
updateClasspath
- Tells the component loader to update the classpath, and thread classloader
AlreadyLoadedException
ComponentException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |