org.exolab.castor.jdo.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 mapping configuration file.
Version:
$Id: TransactionManagerFactoryRegistry.java,v 1.1.1.1 2003/03/03 07:08:25 kvisco Exp $
Authors:
Bruce Snyder
Werner Guttmann

Method Summary

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

Method Details

getTransactionManager

public static TransactionManagerFactory getTransactionManager(String name)
Returns a TransactionManagerFactory with the specified name. The factory class names are loaded from the Castor properties file. Returns null if the named factory is not supported.
Parameters:
name - The TransactionManagerFactory name
Returns:
The TransactionManagerFactory, null if no TransactionManagerFactory with this name exists

getTransactionManagerFactoryNames

public static String[] getTransactionManagerFactoryNames()
Returns the names of all the configured TransactionManagerFactory implementations. The names can be used to obtain a TransactionManagerFactory from TransactionManagerFactoryRegistry.
Returns:
Names of TransactionManagerFactory implementations

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