org.castor.transactionmanager

Class 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.
Version:
$Revision: 7134 $ $Date: 2006-04-08 08:58:10 -0600 (Sat, 08 Apr 2006) $
Authors:
Bruce Snyder
Werner Guttmann
Ralf Joachim
Since:
1.0

Constructor Summary

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

Method Summary

TransactionManagerFactory
getTransactionManagerFactory(String name)
Returns a TransactionManagerFactory with the specified name.
String[]
getTransactionManagerFactoryNames()
Returns the names of all the configured TransactionManagerFactory implementations.

Constructor Details

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 Details

getTransactionManagerFactory

public TransactionManagerFactory getTransactionManagerFactory(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.

getTransactionManagerFactoryNames

public String[] getTransactionManagerFactoryNames()
Returns:
Names of TransactionManagerFactory implementations

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