org.castor.transactionmanager
Class JNDIENCTransactionManagerFactory

java.lang.Object
  extended by org.castor.transactionmanager.JNDIENCTransactionManagerFactory
All Implemented Interfaces:
TransactionManagerFactory

public final class JNDIENCTransactionManagerFactory
extends Object
implements TransactionManagerFactory

Transaction manager factory instance to be used with J2EE containers where the transaction manager is bound to the JNDI ENC of the container. Implements {link org.exolab.castor.jdo.transactionmanager. TransactionManagerFactory}.

Since:
1.0
Version:
$Revision: 7085 $ $Date: 2006-04-13 10:49:49 -0600 (Thu, 13 Apr 2006) $
Author:
Bruce Snyder, Werner Guttmann, Ralf Joachim

Field Summary
static String NAME
          The name of the factory.
static String TRANSACTION_MANAGER_NAME
          Default JNDI binding for javax.transaction.TransactionManager instance.
 
Constructor Summary
JNDIENCTransactionManagerFactory()
           
 
Method Summary
 String getName()
          Returns the short alias for this factory instance.
 TransactionManager getTransactionManager(Properties properties)
          Acquires the appropriate javax.transaction.TransactionManager with the given properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSACTION_MANAGER_NAME

public static final String TRANSACTION_MANAGER_NAME
Default JNDI binding for javax.transaction.TransactionManager instance.

See Also:
Constant Field Values

NAME

public static final String NAME
The name of the factory.

See Also:
Constant Field Values
Constructor Detail

JNDIENCTransactionManagerFactory

public JNDIENCTransactionManagerFactory()
Method Detail

getName

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

Specified by:
getName in interface TransactionManagerFactory
Returns:
The short alias name.
See Also:
TransactionManagerFactory.getName()

getTransactionManager

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

Specified by:
getTransactionManager in interface TransactionManagerFactory
Parameters:
properties - The properties passed to the transaction manager.
Returns:
The transaction manager.
Throws:
TransactionManagerAcquireException - If any failure occured when loading the transaction manager.
See Also:
#getTransactionManager(java.util.Properties)


Copyright © 2010. All Rights Reserved.