org.mule.module.db.internal.domain.xa
Class DefaultDataSourceDecorator
java.lang.Object
org.mule.module.db.internal.domain.xa.DefaultDataSourceDecorator
- All Implemented Interfaces:
- DataSourceDecorator
public class DefaultDataSourceDecorator
- extends Object
- implements DataSourceDecorator
Decorates a DataSource using a DataSourceWrapper if required
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultDataSourceDecorator
public DefaultDataSourceDecorator()
decorate
public DataSource decorate(DataSource dataSource,
String dataSourceName,
DbPoolingProfile dbPoolingProfile,
MuleContext muleContext)
- Description copied from interface:
DataSourceDecorator
- Decorates a dataSource
- Specified by:
decorate in interface DataSourceDecorator
- Parameters:
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 registered
- Returns:
appliesTo
public boolean appliesTo(DataSource dataSource,
MuleContext muleContext)
- Description copied from interface:
DataSourceDecorator
- Indicates whether or not this decorator can decorate a given datasource
- Specified by:
appliesTo in interface DataSourceDecorator
- Parameters:
dataSource - dataSource to checkmuleContext - mule context associated to the current mule application
- Returns:
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.