Expresso 5-6

com.jcorporate.expresso.kernel
Interface RootContainerInterface

All Superinterfaces:
ComponentLifecycle, Containable, ExpressoComponent, Serializable
All Known Implementing Classes:
RootContainer

public interface RootContainerInterface
extends Containable, ComponentLifecycle, ExpressoComponent

This interface represents the special container case of the Root container where we need to store specific runtime information. It is not often utilized directly except through configuration information/management of the Expresso runtime system.

Author:
Michael Rimov

Method Summary
 void destroy()
          Destroy the root container and everything it contains.
 ExpressoServicesConfig getExpressoServicesConfig()
          Retrieve the current ExpressoServicesConfiguration file bean.
 LogManager getLogManager()
          Retrieve the log manager
 URL getServicesFileLocation()
          Retrieves the URL location of the services file location.
 String getSetupValue(String valueName)
          Retrieve a global setup value (should be rarely used in a good system design)
 Map getSetupValues()
          Retrieves ALL setup values available for the whole system
 void setExpressoServicesConfig(ExpressoServicesConfig theConfig)
          Set the ExpressoServicesConfig bean.
 void setLogManager(LogManager newManager)
          Sets the LogManager for management access purposes
 void setServicesFileLocation(URL url)
          Sets the ULR location of the services file.
 
Methods inherited from interface com.jcorporate.expresso.kernel.Containable
getContainerImplementation, locateComponent, setContainerImplementation
 
Methods inherited from interface com.jcorporate.expresso.kernel.ExpressoComponent
getMetaData, getParent, setParent
 
Methods inherited from interface com.jcorporate.expresso.kernel.ComponentLifecycle
configure, initialize, reconfigure
 

Method Detail

getExpressoServicesConfig

public ExpressoServicesConfig getExpressoServicesConfig()
Retrieve the current ExpressoServicesConfiguration file bean.

Returns:
the Root ExpressoServicesconfig

setExpressoServicesConfig

public void setExpressoServicesConfig(ExpressoServicesConfig theConfig)
Set the ExpressoServicesConfig bean. This is usually done by the System factory, or possibly the management tools.

Parameters:
theConfig - the confgiuration to set

destroy

public void destroy()
Destroy the root container and everything it contains.

Specified by:
destroy in interface ComponentLifecycle

getLogManager

public LogManager getLogManager()
Retrieve the log manager

Returns:
LogManager

setLogManager

public void setLogManager(LogManager newManager)
Sets the LogManager for management access purposes

Parameters:
newManager - the new LogManager to use for the root container

getSetupValue

public String getSetupValue(String valueName)
Retrieve a global setup value (should be rarely used in a good system design)

Parameters:
valueName - the Name of the setup value to retrieve
Returns:
a java.lang.String corresponding value

getSetupValues

public Map getSetupValues()
Retrieves ALL setup values available for the whole system

Returns:
java.util.Map that shouldn't be modified directly.

getServicesFileLocation

public URL getServicesFileLocation()
Retrieves the URL location of the services file location. May be inside a jar/war file

Returns:
java.net.URL

setServicesFileLocation

public void setServicesFileLocation(URL url)
Sets the ULR location of the services file. This is usually called by the SystemFactory

Parameters:
url - the URL of the services file location

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.