Class JNDIDataSourceFactory
java.lang.Object
org.apache.cayenne.configuration.server.JNDIDataSourceFactory
- All Implemented Interfaces:
DataSourceFactory
Locates DataSource mapped via JNDI.
- Since:
- 3.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDataSource
(DataNodeDescriptor nodeDescriptor) Returns DataSource object based on the configuration provided in the "nodeDescriptor".protected String
getLocation
(DataNodeDescriptor nodeDescriptor)
-
Constructor Details
-
JNDIDataSourceFactory
public JNDIDataSourceFactory()
-
-
Method Details
-
getDataSource
Description copied from interface:DataSourceFactory
Returns DataSource object based on the configuration provided in the "nodeDescriptor".- Specified by:
getDataSource
in interfaceDataSourceFactory
- Throws:
Exception
-
getLocation
-