|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zphinx.spine.start.helpers.DataSourceServiceLocator
public class DataSourceServiceLocator
DataSourceServiceLocator serves as a service locator used to fetch datasources as defined in the initialization configuration file.
Copyright ©Zphinx Software Solutions
| Method Summary | |
|---|---|
void |
createDataSource(String key,
Map map,
DataSourceBuilder sourceBuilder)
Creates a dataSource using the specified map properties, the DataSourceBuilder and the associated key. |
DataSource |
getDataSource()
Gets the default dataSource |
DataSource |
getDataSource(String key)
Gets the dataSource known by the specified key |
static DataSourceServiceLocator |
getInstance()
Gets the only instance of this object |
DataSourceBuilder |
initiateBuilder(Map map)
Creates a DataSourceBuilder using the map |
void |
setDataSource(DataSource dataSource2)
Sets a default dataSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DataSourceServiceLocator getInstance()
public DataSource getDataSource()
public DataSource getDataSource(String key)
public void createDataSource(String key,
Map map,
DataSourceBuilder sourceBuilder)
map - A map containing the dataSource initialization propertieskey - The key by which this datasource is known to the systemsourceBuilder - The DataSourceBuilder instance used in the creation processpublic DataSourceBuilder initiateBuilder(Map map)
map - The map containing all the parameters needed to initiate a dataSource
public void setDataSource(DataSource dataSource2)
dataSource2 - The dataSource to set as default dataSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||