User: osh
Date: 01/02/09 11:00:50
Added: src/main/org/jboss/tm
TransactionPropagationContextImporter.java
Log:
Added interface for tx import.
Revision Changes Path
1.1
jboss/src/main/org/jboss/tm/TransactionPropagationContextImporter.java
Index: TransactionPropagationContextImporter.java
===================================================================
/*
* JBoss, the OpenSource EJB server
*
* 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 <a href="mailto:[EMAIL PROTECTED]">Ole Husgaard</a>
* @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
* <code>Transaction</code> representing the transaction propagation
* context in the local VM.
* Returns <code>null</code> if the transaction propagation context is
* <code>null</code>, or if it represents a <code>null</code> transaction.
*/
public Transaction importTransactionPropagationContext(Object tpc);
}