|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zphinx.spine.start.ApplicationConfigurator
public class ApplicationConfigurator
ApplicationConfigurator is used by this application to run initializers at configuration time.It will use a map usually obtained from the spine-init.xml file to initialize the framework.
Client developers can add a plugin via the initialization file, which must have a concrete implementation that can be used to provide application functionality.This plugin is avialable throughout the duration of the application and can by queried by the PluginServiceLocator.getPlugin(String) or PluginServiceLocator.getPlugins() method of this object.
Copyright ©Zphinx Software Solutions
| Field Summary | |
|---|---|
static String |
CONFIG_DATASOURCE
The key used to store the datasource Object |
static String |
CONFIG_FILE
The key used to store the path to the configuration file |
static String |
LOG_FILE
The key used to store the path to the logfile |
static String |
ROLE_CONFIG_FILE
The key used to store the path to the role configuration file |
static String |
WATCH_TIME
The key used to store the watchTime value |
| Method Summary | |
|---|---|
void |
configure(Map map)
Configures the application by running all initialization objects |
void |
configure(Map map,
DataSource dataSource)
Configures the application and initializes the datasource objects |
void |
configure(String fileName,
DataSource dataSource)
Configures the application using the xml path at the stated location and initializes the datasource objects |
static ApplicationConfigurator |
getInstance()
Gets the static instance of this object |
void |
setDataSource(DataSource dataSource)
Sets the dataSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONFIG_DATASOURCE
public static final String WATCH_TIME
public static final String CONFIG_FILE
public static final String ROLE_CONFIG_FILE
public static final String LOG_FILE
| Method Detail |
|---|
public void configure(Map map)
map - The map containing the configuration parameters, the keys in this map are listed above as constants
public void configure(Map map,
DataSource dataSource)
map - The map containing the configuration parameters, the keys in this map are listed above as constantsdataSource - the dataSource to set
public void configure(String fileName,
DataSource dataSource)
fileName - The full path to the xml file containing the configuration parameters, the keys in this file are listed above as constants except where the key value is a node listdataSource - the dataSource to setpublic static ApplicationConfigurator getInstance()
public void setDataSource(DataSource dataSource)
dataSource - the dataSource to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||