public class DefaultDataSourceDecorator extends Object implements DataSourceDecorator
DataSource
using a DataSourceWrapper
if requiredConstructor 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)
DataSourceDecorator
decorate
in interface DataSourceDecorator
dataSource
- 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)
DataSourceDecorator
appliesTo
in interface DataSourceDecorator
dataSource
- dataSource to checkmuleContext
- mule context associated to the current mule applicationCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.