org.springframework.boot.jdbc

Interface XADataSourceWrapper

  • All Known Implementing Classes:
    AtomikosXADataSourceWrapper
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


    @FunctionalInterface
    public interface XADataSourceWrapper
    Strategy interface used to wrap an XADataSource enrolling it with a JTA TransactionManager.
    Since:
    2.0.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      javax.sql.DataSource wrapDataSource(javax.sql.XADataSource dataSource)
      Wrap the specific XADataSource and enroll it with a JTA TransactionManager.
    • Method Detail

      • wrapDataSource

        javax.sql.DataSource wrapDataSource(javax.sql.XADataSource dataSource)
                                     throws java.lang.Exception
        Wrap the specific XADataSource and enroll it with a JTA TransactionManager.
        Parameters:
        dataSource - the data source to wrap
        Returns:
        the wrapped data source
        Throws:
        java.lang.Exception - if the data source cannot be wrapped