Class ExplicitInterposition

java.lang.Object
com.arjuna.ats.jts.ExplicitInterposition

public class ExplicitInterposition extends Object
This class is responsible for doing interposition in the case where implicit context propagation is not possible.
Since:
JTS 1.0.
Version:
$Id: ExplicitInterposition.java 2342 2006-03-30 13:06:17Z $
Author:
Mark Little (mark_little@hp.com)
  • Constructor Details

    • ExplicitInterposition

      public ExplicitInterposition()
      Create a new instance and remember any current transaction that may be associated with the invoking thread so that it can be restored once interposition has finished.
    • ExplicitInterposition

      public ExplicitInterposition(boolean remember)
      Create a new instance. Depending upon the value of the boolean parameter, remember any current transaction that may be associated with the invoking thread so that it can be restored once interposition has finished.
    • ExplicitInterposition

      public ExplicitInterposition(Control action, boolean remember) throws InterpositionFailed, org.omg.CORBA.SystemException
      Create a new instance and interpose with the specified transaction. Depending upon the value of the boolean parameter, remember any current transaction that may be associated with the invoking thread so that it can be restored once interposition has finished.
      Throws:
      InterpositionFailed
      org.omg.CORBA.SystemException
    • ExplicitInterposition

      public ExplicitInterposition(PropagationContext ctx, boolean remember) throws InterpositionFailed, org.omg.CORBA.SystemException
      Create a new instance and interpose with the specified transaction. Depending upon the value of the boolean parameter, remember any current transaction that may be associated with the invoking thread so that it can be restored once interposition has finished.
      Throws:
      InterpositionFailed
      org.omg.CORBA.SystemException
  • Method Details

    • finalize

      public void finalize()
      Overrides:
      finalize in class Object
    • registerTransaction

      public final void registerTransaction(Control action) throws InterpositionFailed, org.omg.CORBA.SystemException
      Perform interposition with the specified transaction.
      Throws:
      InterpositionFailed
      org.omg.CORBA.SystemException
    • unregisterTransaction

      public void unregisterTransaction() throws org.omg.CORBA.SystemException
      We need this explicit method because we cannot rely upon the object "destructor" being called by the time the method which instantiated the interposition class ends!
      Throws:
      org.omg.CORBA.SystemException