public class CompositeDataSourceDecorator extends Object implements DataSourceDecorator
DataSourceDecorator instances| Constructor and Description |
|---|
CompositeDataSourceDecorator() |
| 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
|
void |
init(MuleContext muleContext) |
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 applicationpublic void init(MuleContext muleContext)
Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.