/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.tm;
import javax.transaction.Transaction;
/**
* Implementations of this interface are used for importing a transaction
* propagation context into the transaction manager.
*
* @see TransactionPropagationContextFactory
* @author Ole Husgaard
* @version $Revision: 1.1 $
*/
public interface TransactionPropagationContextImporter
{
/**
* Import the transaction propagation context into the transaction
* manager, and return the resulting transaction.
* If this transaction propagation context has already been imported
* into the transaction manager, this method simply returns the
* Transaction representing the transaction propagation
* context in the local VM.
* Returns null if the transaction propagation context is
* null, or if it represents a null transaction.
*/
public Transaction importTransactionPropagationContext(Object tpc);
}