com.zphinx.spine.start.helpers.impl
Class DefaultDataSourceBuilder
java.lang.Object
com.zphinx.spine.start.helpers.impl.DefaultDataSourceBuilder
- All Implemented Interfaces:
- DataSourceBuilder
public class DefaultDataSourceBuilder
- extends Object
- implements DataSourceBuilder
DefaultDataSourceBuilder is a DataSourceBuilder that attempts to initialize a dataSOurce based on the properties specified by a user in configuration. It requires the user to use the tag names as expected properties of the DataSource to be initialized, otherwise it will fail.
- Version:
- $1.0
Copyright ©Zphinx Software Solutions
- Author:
- David Ladapo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultDataSourceBuilder
public DefaultDataSourceBuilder()
- Public Constructor
createDataSource
public DataSource createDataSource(Map map)
- Description copied from interface:
DataSourceBuilder
- Instantiate, initialize and return a DataSource
- Specified by:
createDataSource in interface DataSourceBuilder
- Parameters:
map - A map containing the parameters needed to create the DataSource
- Returns:
- The dataSource we have just created and initialized.