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 Details

    • AbstractXADataSourceWrapper

      protected AbstractXADataSourceWrapper(com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule xaRecoveryModule, RecoveryCredentialsProperties recoveryCredentials)
  • Method Details

    • wrapDataSourceInternal

      protected abstract DataSource wrapDataSourceInternal(XADataSource dataSource) throws Exception
      Throws:
      Exception
    • wrapDataSource

      public DataSource wrapDataSource(XADataSource dataSource) throws Exception
      Register newly created recovery helper with the XARecoveryModule and delegate data source wrapping.
      Specified by:
      wrapDataSource in interface org.springframework.boot.jdbc.XADataSourceWrapper
      Parameters:
      dataSource - XADataSource that needs to be wrapped.
      Returns:
      wrapped data source
      Throws:
      Exception - in case data source wrapping has failed