com.ibatis.sqlmap.engine.datasource
Interface DataSourceFactory

All Known Implementing Classes:
DbcpDataSourceFactory, JndiDataSourceFactory, SimpleDataSourceFactory

public interface DataSourceFactory

Interface to provide a way to create and configure a DataSource for iBATIS


Method Summary
 javax.sql.DataSource getDataSource()
          Returns a datasource
 void initialize(java.util.Map map)
          Simple method to initialize/configure a datasource
 

Method Detail

initialize

public void initialize(java.util.Map map)
Simple method to initialize/configure a datasource

Parameters:
map - - the configuration information

getDataSource

public javax.sql.DataSource getDataSource()
Returns a datasource

Returns:
an implementation of DataSource