org.apache.cayenne.configuration.server

## 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

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected JdbcEventLogger` | `jdbcEventLogger`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `JNDIDataSourceFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `DataSource` | `getDataSource(DataNodeDescriptor nodeDescriptor)` Returns DataSource object based on the configuration provided in the "nodeDescriptor".

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### jdbcEventLogger

          protected JdbcEventLogger jdbcEventLogger

  - ### Constructor Detail

    - #### JNDIDataSourceFactory

          public JNDIDataSourceFactory()

  - ### 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 interface `DataSourceFactory`
      Throws:
        `Exception`

Copyright © 2001–2018 Apache Cayenne. All rights reserved.