Class TransactionAwareHolder<T>

java.lang.Object
org.apache.chemistry.opencmis.commons.spi.Holder<T>
org.alfresco.opencmis.TransactionAwareHolder<T>

public class TransactionAwareHolder<T> extends org.apache.chemistry.opencmis.commons.spi.Holder<T>
A Tx aware wrapper around Holder.

This wrapper is created in CMISTransactionAwareHolderInterceptor. It is designed to handle the state of the Holder in case of tx retries which are handled by RetryingTransactionInterceptor.

There are a few things that influenced the implementation of this wrapper and need to be taken into account:

Author:
alex.mukha
  • Method Details

    • getValue

      public T getValue()
      Overrides:
      getValue in class org.apache.chemistry.opencmis.commons.spi.Holder<T>
    • setValue

      public void setValue(T value)
      Overrides:
      setValue in class org.apache.chemistry.opencmis.commons.spi.Holder<T>
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.chemistry.opencmis.commons.spi.Holder<T>