Interface SynchronizationManager

  • All Known Implementing Classes:
    ConfluenceSynchronizationManager

    public interface SynchronizationManager
    Manages transaction synchronizations: a list of actions to be done when the transaction completes on the current thread. Interface is derived mostly from TransactionSynchronizationManager which is used by the Confluence implementation.
    See Also:
    TransactionSynchronizationManager, TransactionSynchronization, ConfluenceSynchronizationManager
    • Method Detail

      • registerSynchronization

        void registerSynchronization​(org.springframework.transaction.support.TransactionSynchronization synchronization)
        Registers a Spring TransactionSynchronization on the current transaction.
        Throws:
        IllegalStateException - if there is no Spring transaction available.
      • getSynchronizations

        List getSynchronizations()
        Return an unmodifiable snapshot list of all registered synchronizations for the current thread.
        Returns:
        unmodifiable List of TransactionSynchronization instances
        Throws:
        IllegalStateException - if transaction is not active
        See Also:
        TransactionSynchronization
      • isTransactionActive

        boolean isTransactionActive()
        Returns:
        true if there is an active Spring transaction which accepts synchronizations, otherwise false.