Class DelegatingDataSourceFactory

java.lang.Object
org.apache.cayenne.configuration.server.DelegatingDataSourceFactory
All Implemented Interfaces:
DataSourceFactory

public class DelegatingDataSourceFactory extends Object implements DataSourceFactory
A DataSourceFactory that delegates DataSource creation to another factory, which is determined dynamically per DataNodeDescriptor. The delegate class may be explicitly defined in the DataNodeDescriptor. If not, and if the descriptor has a configuration resource attached to it, XMLPoolingDataSourceFactory is used.

If the environment contains properties cayenne.jdbc.url.domain_name.node_name (or cayenne.jdbc.url) and cayenne.jdbc.driver.domain_name.node_name (or cayenne.jdbc.driver), any DataSourceFactory configured in the DataNodeDescriptor is ignored, and the PropertyDataSourceFactory is used.

Since:
3.1