org.apache.cocoon.databases.ibatis
Class ExcaliburDataSourceFactory

java.lang.Object
  extended by org.apache.cocoon.databases.ibatis.ExcaliburDataSourceFactory
All Implemented Interfaces:
com.ibatis.sqlmap.engine.datasource.DataSourceFactory

public class ExcaliburDataSourceFactory
extends Object
implements com.ibatis.sqlmap.engine.datasource.DataSourceFactory

This is an implementation if iBatis DataSourceFactory allowing to use a reference to an excalibur data source in the iBatis configuration. The configuration in the iBatis sqlMapConfig looks like this: <dataSource type="org.apache.cocoon.databases.ibatis.ExcaliburDataSourceFactory"> <property name="connection" value="Name of the Excalibur data source from the cocoon.xconf"/> </dataSource>

Since:
2.1.10
Version:
$Id: ExcaliburDataSourceFactory.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Nested Class Summary
protected static class ExcaliburDataSourceFactory.DataSourceWrapper
           
 
Field Summary
protected  DataSourceComponent datasource
           
 
Constructor Summary
ExcaliburDataSourceFactory()
           
 
Method Summary
 DataSource getDataSource()
           
 void initialize(Map values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

datasource

protected DataSourceComponent datasource
Constructor Detail

ExcaliburDataSourceFactory

public ExcaliburDataSourceFactory()
Method Detail

getDataSource

public DataSource getDataSource()
Specified by:
getDataSource in interface com.ibatis.sqlmap.engine.datasource.DataSourceFactory

initialize

public void initialize(Map values)
Specified by:
initialize in interface com.ibatis.sqlmap.engine.datasource.DataSourceFactory
See Also:
DataSourceFactory.initialize(java.util.Map)


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.