org.ofbiz.guiapp.xui
Class XuiContainer

java.lang.Object
  extended by org.ofbiz.guiapp.xui.XuiContainer
All Implemented Interfaces:
Container

public abstract class XuiContainer
extends java.lang.Object
implements Container


Field Summary
protected  java.lang.String configFile
           
static java.lang.String module
           
protected  java.lang.String startupDir
           
protected  java.lang.String startupFile
           
protected static XuiSession xuiSession
           
 
Constructor Summary
XuiContainer()
           
 
Method Summary
abstract  void configure(ContainerConfig.Container cc)
          Implementation specific configuration from the container config This method is called after the initial XUI configuration, after the session creation; before the initial screen is rendered.
abstract  java.lang.String getContainerConfigName()
           
static XuiSession getSession()
           
 java.lang.String getXuiPropertiesName()
           
 void init(java.lang.String[] args, java.lang.String configFile)
          Initialize the container
 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

module

public static final java.lang.String module

xuiSession

protected static XuiSession xuiSession

startupDir

protected java.lang.String startupDir

startupFile

protected java.lang.String startupFile

configFile

protected java.lang.String configFile
Constructor Detail

XuiContainer

public XuiContainer()
Method Detail

init

public void init(java.lang.String[] args,
                 java.lang.String configFile)
          throws ContainerException
Description copied from interface: Container
Initialize the container

Specified by:
init in interface Container
Parameters:
args - args from calling class
configFile - Location of master OFBiz configuration file
Throws:
ContainerException

start

public boolean start()
              throws ContainerException
Description copied from interface: Container
Start the container

Specified by:
start in interface Container
Returns:
true if server started
Throws:
ContainerException

stop

public void stop()
          throws ContainerException
Description copied from interface: Container
Stop the container

Specified by:
stop in interface Container
Throws:
ContainerException

getXuiPropertiesName

public java.lang.String getXuiPropertiesName()

getContainerConfigName

public abstract java.lang.String getContainerConfigName()
Returns:
String the name of the container name property

configure

public abstract void configure(ContainerConfig.Container cc)
                        throws ContainerException
Implementation specific configuration from the container config This method is called after the initial XUI configuration, after the session creation; before the initial screen is rendered.

Parameters:
cc - The container config object used to obtain the information
Throws:
ContainerException

getSession

public static XuiSession getSession()