Package org.springframework.boot.jdbc
Interface XADataSourceWrapper
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy interface used to wrap an
XADataSource
enrolling it with a JTA
TransactionManager
.- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionwrapDataSource
(XADataSource dataSource) Wrap the specificXADataSource
and enroll it with a JTATransactionManager
.
-
Method Details
-
wrapDataSource
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
-