org.apache.synapse.commons.datasource.factory

## Class DataSourceFactory

- java.lang.Object
- - org.apache.synapse.commons.datasource.factory.DataSourceFactory

-     public class DataSourceFactory
      extends java.lang.Object

  Factory for creating a DataSource based on information in DataSourceInformation

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static javax.sql.DataSource` | `createDataSource(DataSourceInformation dataSourceInformation)` Factory method to create a DataSource based on provided information which is encapsulated in the DataSourceInformation object.

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

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

- - ### Method Detail

    - #### createDataSource

          public static javax.sql.DataSource createDataSource(DataSourceInformation dataSourceInformation)

      Factory method to create a DataSource based on provided information which is encapsulated in the DataSourceInformation object.
      Parameters:
        `dataSourceInformation` - Information about DataSource
      Returns:
        DataSource Instance if one can be created , otherwise null or exception if provided details are not valid or enough to create a DataSource

Copyright © 2005-2022 Apache Software Foundation. All Rights Reserved.