org.mule.module.db.internal.domain.xa
Interface DataSourceDecorator

All Known Implementing Classes:
CompositeDataSourceDecorator, DefaultDataSourceDecorator

public interface DataSourceDecorator

Decorates DataSource if required in order to work with XA transactions


Method Summary
 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
 

Method Detail

decorate

DataSource decorate(DataSource dataSource,
                    String dataSourceName,
                    DbPoolingProfile dbPoolingProfile,
                    MuleContext muleContext)
Decorates a dataSource

Parameters:
dataSource - dataSource to decorate. Non null
dataSourceName - dataSource bean name
dbPoolingProfile - pooling profile use to create the wrapped dataSource
muleContext - mule context where the wrapped dataSource has to be registered
Returns:

appliesTo

boolean appliesTo(DataSource dataSource,
                  MuleContext muleContext)
Indicates whether or not this decorator can decorate a given datasource

Parameters:
dataSource - dataSource to check
muleContext - mule context associated to the current mule application
Returns:


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.