org.castor.transactionmanager
Class TransactionManagerFactoryRegistry

java.lang.Object
  extended byorg.castor.transactionmanager.TransactionManagerFactoryRegistry

public final class TransactionManagerFactoryRegistry
extends java.lang.Object

Registry for TransactionManagerFactory implementations obtained from the Castor properties file and used by the JDO configuration file.

Since:
1.0
Version:
$Revision: 5951 $ $Date: 2006-04-08 08:58:10 -0600 (Sat, 08 Apr 2006) $
Author:
Bruce Snyder, Werner Guttmann, Ralf Joachim

Constructor Summary
TransactionManagerFactoryRegistry(Configuration config)
          Construct an instance of TransactionManagerFactoryRegistry that loads the TransactionManagerFactory implementations specified in the given LocalConfiguration.
 
Method Summary
 TransactionManagerFactory getTransactionManagerFactory(java.lang.String name)
          Returns a TransactionManagerFactory with the specified name.
 java.lang.String[] getTransactionManagerFactoryNames()
          Returns the names of all the configured TransactionManagerFactory implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionManagerFactoryRegistry

public TransactionManagerFactoryRegistry(Configuration config)
Construct an instance of TransactionManagerFactoryRegistry that loads the TransactionManagerFactory implementations specified in the given LocalConfiguration.

Parameters:
config - The LocalConfiguration.
Method Detail

getTransactionManagerFactoryNames

public java.lang.String[] getTransactionManagerFactoryNames()
Returns the names of all the configured TransactionManagerFactory implementations. A TransactionManagerFactory instance can be obtained by the getTransactionManagerFactory(java.lang.String) method.

Returns:
Names of TransactionManagerFactory implementations

getTransactionManagerFactory

public TransactionManagerFactory getTransactionManagerFactory(java.lang.String name)
                                                       throws TransactionManagerAcquireException
Returns a TransactionManagerFactory with the specified name. Returns null if the named factory is not supported.

Parameters:
name - The name of the TransactionManagerFactory.
Returns:
The TransactionManagerFactory or null if none exists.
Throws:
TransactionManagerAcquireException - If TransactoinManagerFactory with given name could not be found.


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