public abstract class AbstractXADataSourceWrapper extends Object implements org.springframework.boot.jdbc.XADataSourceWrapper
XADataSourceWrapper implementation which handles XAResourceRecoveryHelper creation and
registration. It delegates the actual XADataSource wrapping to its subclasses.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractXADataSourceWrapper(NarayanaProperties properties,
com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule xaRecoveryModule) |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
wrapDataSource(XADataSource dataSource)
Register newly created recovery helper with the
XARecoveryModule and delegate data source wrapping. |
protected abstract DataSource |
wrapDataSourceInternal(XADataSource dataSource) |
protected AbstractXADataSourceWrapper(NarayanaProperties properties, com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule xaRecoveryModule)
protected abstract DataSource wrapDataSourceInternal(XADataSource dataSource) throws Exception
Exceptionpublic DataSource wrapDataSource(XADataSource dataSource) throws Exception
XARecoveryModule and delegate data source wrapping.wrapDataSource in interface org.springframework.boot.jdbc.XADataSourceWrapperdataSource - XADataSource that needs to be wrapped.Exception - in case data source wrapping has failedCopyright © 2020. All rights reserved.