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
-
Method Summary
Modifier and TypeMethodDescriptiongetDataSource
(org.apache.cayenne.configuration.DataNodeDescriptor nodeDescriptor) Return a wrapped connection datasource.Methods inherited from class org.apache.cayenne.configuration.server.JNDIDataSourceFactory
getLocation
-
Constructor Details
-
CoreJNDIDataSourceFactory
public CoreJNDIDataSourceFactory()
-
-
Method Details
-
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:
-