com.ibatis.sqlmap.engine.datasource
Class JndiDataSourceFactory

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.datasource.JndiDataSourceFactory
All Implemented Interfaces:
DataSourceFactory

public class JndiDataSourceFactory
extends java.lang.Object
implements DataSourceFactory

DataSourceFactory implementation for JNDI


Constructor Summary
JndiDataSourceFactory()
           
 
Method Summary
 javax.sql.DataSource getDataSource()
          Returns a datasource
 void initialize(java.util.Map properties)
          Simple method to initialize/configure a datasource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiDataSourceFactory

public JndiDataSourceFactory()
Method Detail

initialize

public void initialize(java.util.Map properties)
Description copied from interface: DataSourceFactory
Simple method to initialize/configure a datasource

Specified by:
initialize in interface DataSourceFactory
Parameters:
properties - - the configuration information

getDataSource

public javax.sql.DataSource getDataSource()
Description copied from interface: DataSourceFactory
Returns a datasource

Specified by:
getDataSource in interface DataSourceFactory
Returns:
an implementation of DataSource