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

java.lang.Object
  extended by org.mule.module.db.internal.domain.xa.CompositeDataSourceDecorator
All Implemented Interfaces:
DataSourceDecorator

public class CompositeDataSourceDecorator
extends Object
implements DataSourceDecorator

Composes multiple DataSourceDecorator instances


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

Constructor Detail

CompositeDataSourceDecorator

public CompositeDataSourceDecorator()
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:

init

public void init(MuleContext muleContext)


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