Package com.avoka.core.cayenne
Class CoreJNDIDataSourceFactory
- java.lang.Object
-
- org.apache.cayenne.configuration.server.JNDIDataSourceFactory
-
- com.avoka.core.cayenne.CoreJNDIDataSourceFactory
-
- All Implemented Interfaces:
org.apache.cayenne.configuration.server.DataSourceFactory
public class CoreJNDIDataSourceFactory extends org.apache.cayenne.configuration.server.JNDIDataSourceFactory
Provides a core Cayenne JNDIDataSourceFactory class.- Since:
- 4.1.0
-
-
Constructor Summary
Constructors Constructor Description CoreJNDIDataSourceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSource
getDataSource(org.apache.cayenne.configuration.DataNodeDescriptor nodeDescriptor)
Return a wrapped connection datasource.
-
-
-
Method Detail
-
getDataSource
public DataSource getDataSource(org.apache.cayenne.configuration.DataNodeDescriptor nodeDescriptor) throws Exception
Return a wrapped connection datasource.- Specified by:
getDataSource
in interfaceorg.apache.cayenne.configuration.server.DataSourceFactory
- Overrides:
getDataSource
in classorg.apache.cayenne.configuration.server.JNDIDataSourceFactory
- Parameters:
nodeDescriptor
- the Cayenne node descriptor- Returns:
- connection datasource
- Throws:
Exception
- if an error occurs- See Also:
DataSourceFactory.getDataSource(DataNodeDescriptor)
-
-