XMLPoolingDataSourceFactory (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne.configuration.runtime, class: XMLPoolingDataSourceFactory

# Class XMLPoolingDataSourceFactory

java.lang.Object
org.apache.cayenne.configuration.runtime.XMLPoolingDataSourceFactory

All Implemented Interfaces:
  `DataSourceFactory`

public class XMLPoolingDataSourceFactory extends 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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `XMLPoolingDataSourceFactory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `DataSource`
  `getDataSource(DataNodeDescriptor nodeDescriptor)`
  Returns DataSource object based on the configuration provided in the "nodeDescriptor".

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### XMLPoolingDataSourceFactory

    public XMLPoolingDataSourceFactory()

- ## Method Details

  - ### getDataSource

    public DataSource getDataSource(DataNodeDescriptor nodeDescriptor)
    Description copied from interface: `DataSourceFactory`
    Returns DataSource object based on the configuration provided in the "nodeDescriptor".
    Specified by:
      `getDataSource` in interface `DataSourceFactory`