org.apache.cayenne.configuration.server
Class XMLPoolingDataSourceFactory
java.lang.Object
org.apache.cayenne.configuration.server.XMLPoolingDataSourceFactory
- All Implemented Interfaces:
- DataSourceFactory
public class XMLPoolingDataSourceFactory
- extends java.lang.Object
- implements DataSourceFactory
A DataSourceFactory
that loads JDBC connection information from an XML resource
associated with the DataNodeDescriptor, returning a DataSource with simple connection
pooling.
- Since:
- 3.1
Method Summary |
javax.sql.DataSource |
getDataSource(DataNodeDescriptor nodeDescriptor)
Returns DataSource object based on the configuration provided in the
"nodeDescriptor". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resourceLocator
protected ResourceLocator resourceLocator
jdbcEventLogger
protected JdbcEventLogger jdbcEventLogger
XMLPoolingDataSourceFactory
public XMLPoolingDataSourceFactory()
getDataSource
public javax.sql.DataSource getDataSource(DataNodeDescriptor nodeDescriptor)
throws java.lang.Exception
- Description copied from interface:
DataSourceFactory
- Returns DataSource object based on the configuration provided in the
"nodeDescriptor".
- Specified by:
getDataSource
in interface DataSourceFactory
- Throws:
java.lang.Exception
Copyright © 2001-2012 Apache Cayenne. All Rights Reserved.