Class GenericXADataSourceWrapper
java.lang.Object
dev.snowdrop.boot.narayana.core.jdbc.AbstractXADataSourceWrapper
dev.snowdrop.boot.narayana.core.jdbc.GenericXADataSourceWrapper
- All Implemented Interfaces:
org.springframework.boot.jdbc.XADataSourceWrapper
- Author:
- Gytis Trikleris
-
Constructor Summary
ConstructorsConstructorDescriptionGenericXADataSourceWrapper(com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule xaRecoveryModule) Create a newGenericXADataSourceWrapperinstance.GenericXADataSourceWrapper(com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule xaRecoveryModule, RecoveryCredentialsProperties recoveryCredentials) Create a newGenericXADataSourceWrapperinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected DataSourcewrapDataSourceInternal(XADataSource dataSource) Wrap providedXADataSourcewith an instance ofNarayanaDataSource.Methods inherited from class dev.snowdrop.boot.narayana.core.jdbc.AbstractXADataSourceWrapper
wrapDataSource
-
Constructor Details
-
GenericXADataSourceWrapper
public GenericXADataSourceWrapper(com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule xaRecoveryModule) Create a newGenericXADataSourceWrapperinstance.- Parameters:
xaRecoveryModule- recovery module to register data source with.
-
GenericXADataSourceWrapper
public GenericXADataSourceWrapper(com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule xaRecoveryModule, RecoveryCredentialsProperties recoveryCredentials) Create a newGenericXADataSourceWrapperinstance.- Parameters:
xaRecoveryModule- recovery module to register data source with.recoveryCredentials- credentials for recovery helper
-
-
Method Details
-
wrapDataSourceInternal
Wrap providedXADataSourcewith an instance ofNarayanaDataSource.- Specified by:
wrapDataSourceInternalin classAbstractXADataSourceWrapper- Parameters:
dataSource- data source that needs to be wrapped.- Returns:
- wrapped data source.
-