Class DataSourceFactory
java.lang.Object
org.apache.synapse.commons.datasource.factory.DataSourceFactory
Factory for creating a DataSource based on information in DataSourceInformation
-
Method Summary
Modifier and TypeMethodDescriptionstatic DataSourcecreateDataSource(DataSourceInformation dataSourceInformation) Factory method to create a DataSource based on provided information which is encapsulated in the DataSourceInformation object.
-
Method Details
-
createDataSource
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
-