Class AbstractXADataSourceWrapper
java.lang.Object
dev.snowdrop.boot.narayana.core.jdbc.AbstractXADataSourceWrapper
- All Implemented Interfaces:
org.springframework.boot.jdbc.XADataSourceWrapper
- Direct Known Subclasses:
GenericXADataSourceWrapper
public abstract class AbstractXADataSourceWrapper
extends Object
implements org.springframework.boot.jdbc.XADataSourceWrapper
An abstract
XADataSourceWrapper implementation which handles XAResourceRecoveryHelper creation and
registration. It delegates the actual XADataSource wrapping to its subclasses.- Author:
- Gytis Trikleris
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractXADataSourceWrapper(com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule xaRecoveryModule, RecoveryCredentialsProperties recoveryCredentials) -
Method Summary
Modifier and TypeMethodDescriptionwrapDataSource(XADataSource dataSource) Register newly created recovery helper with theXARecoveryModuleand delegate data source wrapping.protected abstract DataSourcewrapDataSourceInternal(XADataSource dataSource)
-
Constructor Details
-
AbstractXADataSourceWrapper
protected AbstractXADataSourceWrapper(com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule xaRecoveryModule, RecoveryCredentialsProperties recoveryCredentials)
-
-
Method Details
-
wrapDataSourceInternal
- Throws:
Exception
-
wrapDataSource
Register newly created recovery helper with theXARecoveryModuleand delegate data source wrapping.- Specified by:
wrapDataSourcein interfaceorg.springframework.boot.jdbc.XADataSourceWrapper- Parameters:
dataSource-XADataSourcethat needs to be wrapped.- Returns:
- wrapped data source
- Throws:
Exception- in case data source wrapping has failed
-