org.mule.module.db.internal.domain.xa
Class DefaultDataSourceDecorator

java.lang.Object
  extended by 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


Constructor Summary
DefaultDataSourceDecorator()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDataSourceDecorator

public DefaultDataSourceDecorator()
Method Detail

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

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 check
muleContext - mule context associated to the current mule application
Returns:


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