Package org.springframework.boot.jdbc
Interface XADataSourceWrapper
- All Known Implementing Classes:
AtomikosXADataSourceWrapper
,BitronixXADataSourceWrapper
- 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 anXADataSource
enrolling it with a JTATransactionManager
.- Since:
- 2.0.0
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataSource
wrapDataSource(XADataSource dataSource)
Wrap the specificXADataSource
and enroll it with a JTATransactionManager
.
Method Detail
wrapDataSource
DataSource wrapDataSource(XADataSource dataSource) throws Exception
Wrap the specificXADataSource
and enroll it with a JTATransactionManager
.- Parameters:
dataSource
- the data source to wrap- Returns:
- the wrapped data source
- Throws:
Exception
- if the data source cannot be wrapped