com.zphinx.spine.start.helpers.impl
Class DefaultDataSourceBuilder

java.lang.Object
  extended by 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

Constructor Summary
DefaultDataSourceBuilder()
          Public Constructor
 
Method Summary
 DataSource createDataSource(Map map)
          Instantiate, initialize and return a DataSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDataSourceBuilder

public DefaultDataSourceBuilder()
Public Constructor

Method Detail

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.