public class DataSourceFactory extends Object implements org.mule.runtime.api.lifecycle.Disposable
DataSource instances| Constructor and Description |
|---|
DataSourceFactory(String name,
Collection<org.mule.runtime.api.tx.DataSourceDecorator> dataSourceDecorators) |
| 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,
DbPoolingProfile poolingProfile) |
protected DataSource |
createSingleDataSource(DataSourceConfig dataSourceConfig) |
DataSource |
decorateDataSource(DataSource dataSource,
org.mule.runtime.api.config.DatabasePoolingProfile poolingProfile) |
void |
dispose() |
public DataSourceFactory(String name, Collection<org.mule.runtime.api.tx.DataSourceDecorator> dataSourceDecorators)
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, DbPoolingProfile poolingProfile) throws SQLException
SQLExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.DisposableCopyright © 2024. All rights reserved.