public class DataSourceFactory extends Object implements org.mule.runtime.api.lifecycle.Disposable
DataSource instances| Constructor and Description |
|---|
DataSourceFactory(String name,
MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
create(DataSourceConfig dataSourceConfig,
DbPoolingProfile poolingProfile)
Creates a dataSource from a given dataSource config
|
protected DataSource |
createPooledDataSource(DataSourceConfig dataSourceConfig,
DbPoolingProfile poolingProfile) |
protected DataSource |
createPooledStandardDataSource(DataSource dataSource,
org.mule.runtime.api.config.DatabasePoolingProfile poolingProfile) |
protected DataSource |
createSingleDataSource(DataSourceConfig dataSourceConfig) |
DataSource |
decorateDataSource(DataSource dataSource,
org.mule.runtime.api.config.DatabasePoolingProfile poolingProfile) |
void |
dispose() |
public DataSourceFactory(String name, MuleContext muleContext)
public DataSource create(DataSourceConfig dataSourceConfig, DbPoolingProfile poolingProfile) throws SQLException
dataSourceConfig - describes how to create the dataSourceSQLException - in case there is a problem creating the dataSourcepublic DataSource decorateDataSource(DataSource dataSource, org.mule.runtime.api.config.DatabasePoolingProfile poolingProfile)
protected DataSource createSingleDataSource(DataSourceConfig dataSourceConfig) throws SQLException
SQLExceptionprotected DataSource createPooledDataSource(DataSourceConfig dataSourceConfig, DbPoolingProfile poolingProfile) throws SQLException
SQLExceptionprotected DataSource createPooledStandardDataSource(DataSource dataSource, org.mule.runtime.api.config.DatabasePoolingProfile poolingProfile) throws SQLException
SQLExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.DisposableCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.