|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.kernel.SystemFactory
This class is the focalpoint class that constructs the Expresso Runtime system. It loads the Expresso Services files, Metadata files and constructs everything as needed.
Typical Usage for loading the expresso services configuration from
the classpath:
globalContainer = SystemFactory.buildExpressoComponentSystem(
this.getClass().getResource("Test1ExpressoServices.xml"),
this.getClass().getResource("TestLog4jConfig.xml"),
"/My/Log/Location");
| Field Summary | |
static String |
DEFAULT_EXPRESSO_SERVICES
Default filename to look for in classloader if all else fails. |
| Constructor Summary | |
protected |
SystemFactory()
Default constructor.... should not be accessed directly. |
| Method Summary | |
void |
buildAndInitializeComponents(RootContainerInterface root,
ExpressoServicesConfig esc)
Goes through and initializes the individual Expresso Components |
static RootContainerInterface |
buildExpressoComponentSystem(String servicesFile,
String loggingConfiguration,
String logDir)
Basic initialization system. |
static RootContainerInterface |
buildExpressoComponentSystem(URL servicesFile,
URL loggingConfiguration,
String logDir)
Classloader compatable version of the factory system. |
ComponentContainer |
constructComponentContainer()
Single location that constructs all the Container Implementation classes. |
static SystemFactory |
getInstance()
Factory Method. |
protected RootContainerInterface |
initialize(String servicesFile,
String loggingConfiguration,
String logDir)
Protected initialization. |
protected RootContainerInterface |
initialize(URL servicesFile,
URL loggingConfiguration,
String logDir)
Internal usage of the initialization system. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String DEFAULT_EXPRESSO_SERVICES
| Constructor Detail |
protected SystemFactory()
| Method Detail |
public static SystemFactory getInstance()
public static RootContainerInterface buildExpressoComponentSystem(String servicesFile,
String loggingConfiguration,
String logDir)
throws ConfigurationException
servicesFile - The path location of the services file. If null,
the system will attempt to use the ClassLoader to locate an
expresso-services file.loggingConfiguration - The location of the logging configuration
file. If null, the system will be initialized via a log4j.xml
file in the classpath.logDir - the location where Expresso wants to use as a logging
directory.
ConfigurationException
public static RootContainerInterface buildExpressoComponentSystem(URL servicesFile,
URL loggingConfiguration,
String logDir)
throws ConfigurationException
servicesFile - A URL to the services file. (Might be from a
Class.loadResource() call.loggingConfiguration - A URL to the logging configuration file
(Might also be from a Class.loadResource() filelogDir - the path location of the log files (optional)
ConfigurationException
public void buildAndInitializeComponents(RootContainerInterface root,
ExpressoServicesConfig esc)
throws ConfigurationException
root - the Root container to populateesc - the services config file that contains what components should
be initialized into the
ConfigurationExceptionpublic ComponentContainer constructComponentContainer()
protected RootContainerInterface initialize(URL servicesFile,
URL loggingConfiguration,
String logDir)
throws ConfigurationException
servicesFile - A URL to the services file. (Might be from a
Class.loadResource() call.loggingConfiguration - A URL to the logging configuration file
(Might also be from a Class.loadResource() filelogDir - the path location of the log files (optional)
ConfigurationException
protected RootContainerInterface initialize(String servicesFile,
String loggingConfiguration,
String logDir)
throws ConfigurationException
servicesFile - The path location of the services file. If null,
the system will attempt to use the ClassLoader to locate an
expresso-services file.loggingConfiguration - The location of the logging configuration
file. If null, the system will be initialized via a log4j.xml
file in the classpath.logDir - the location where Expresso wants to use as a logging
directory.
ConfigurationException - upon configuration startup error
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||