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