org.castor.transactionmanager

Interface TransactionManagerFactory

public interface TransactionManagerFactory

A factory for properly acquiring javax.transaction.TransactionManager from J2EE containers. To provide an implementation for a specific J2EE container, implement this interface.

Since: 1.0

Version: $Revision: 5951 $ $Date: 2005-12-19 15:48:30 -0700 (Mon, 19 Dec 2005) $

Author: Bruce Snyder Werner Guttmann Ralf Joachim

Method Summary
StringgetName()
Returns the short alias for this factory instance.
TransactionManagergetTransactionManager(Properties properties)
Acquires the appropriate javax.transaction.TransactionManager with the given properties.

Method Detail

getName

public String getName()
Returns the short alias for this factory instance.

Returns: The short alias name.

getTransactionManager

public TransactionManager getTransactionManager(Properties properties)
Acquires the appropriate javax.transaction.TransactionManager with the given properties.

Parameters: properties The properties passed to the transaction manager.

Returns: The transaction manager.

Throws: TransactionManagerAcquireException If any failure occured when loading the transaction manager.

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com