Class 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 Detail

      • CoreJNDIDataSourceFactory

        public CoreJNDIDataSourceFactory()
    • Method Detail

      • getDataSource

        public DataSource getDataSource​(org.apache.cayenne.configuration.DataNodeDescriptor nodeDescriptor)
                                 throws Exception
        Return a wrapped connection datasource.
        Specified by:
        getDataSource in interface org.apache.cayenne.configuration.server.DataSourceFactory
        Overrides:
        getDataSource in class org.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)