public class DefaultDataSourceDecorator extends Object implements DataSourceDecorator
DataSource using a DataSourceWrapper if required| Constructor and Description |
|---|
DefaultDataSourceDecorator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(DataSource dataSource,
MuleContext muleContext)
Indicates whether or not this decorator can decorate a given datasource
|
DataSource |
decorate(DataSource dataSource,
String dataSourceName,
DbPoolingProfile dbPoolingProfile,
MuleContext muleContext)
Decorates a dataSource
|
public DataSource decorate(DataSource dataSource, String dataSourceName, DbPoolingProfile dbPoolingProfile, MuleContext muleContext)
DataSourceDecoratordecorate in interface DataSourceDecoratordataSource - dataSource to decorate. Non nulldataSourceName - dataSource bean namedbPoolingProfile - pooling profile use to create the wrapped dataSourcemuleContext - mule context where the wrapped dataSource has to be registeredpublic boolean appliesTo(DataSource dataSource, MuleContext muleContext)
DataSourceDecoratorappliesTo in interface DataSourceDecoratordataSource - dataSource to checkmuleContext - mule context associated to the current mule applicationCopyright © 2003–2020 MuleSoft, Inc.. All rights reserved.