Class AtomikosXADataSourceWrapper
- java.lang.Object
- org.springframework.boot.jta.atomikos.AtomikosXADataSourceWrapper
- All Implemented Interfaces:
XADataSourceWrapper
public class AtomikosXADataSourceWrapper extends Object implements XADataSourceWrapper
- Since:
- 1.2.0
Constructor Summary
Constructors Constructor Description AtomikosXADataSourceWrapper()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AtomikosDataSourceBean
wrapDataSource(XADataSource dataSource)
Wrap the specificXADataSource
and enroll it with a JTATransactionManager
.
Constructor Detail
AtomikosXADataSourceWrapper
public AtomikosXADataSourceWrapper()
Method Detail
wrapDataSource
public AtomikosDataSourceBean wrapDataSource(XADataSource dataSource) throws Exception
Description copied from interface:XADataSourceWrapper
Wrap the specificXADataSource
and enroll it with a JTATransactionManager
.- Specified by:
wrapDataSource
in interfaceXADataSourceWrapper
- Parameters:
dataSource
- the data source to wrap- Returns:
- the wrapped data source
- Throws:
Exception
- if the data source cannot be wrapped