org.exolab.castor.jdo.transactionmanager

Class TransactionManagerFactoryRegistry

public final class TransactionManagerFactoryRegistry extends Object

Registry for {@link 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 $

Author: Bruce Snyder Werner Guttmann

Method Summary
static TransactionManagerFactorygetTransactionManager(String name)
Returns a {@link TransactionManagerFactory} with the specified name.
static String[]getTransactionManagerFactoryNames()
Returns the names of all the configured {@link TransactionManagerFactory} implementations.

Method Detail

getTransactionManager

public static TransactionManagerFactory getTransactionManager(String name)
Returns a {@link 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 {@link TransactionManagerFactory}, null if no TransactionManagerFactory with this name exists

getTransactionManagerFactoryNames

public static String[] getTransactionManagerFactoryNames()
Returns the names of all the configured {@link TransactionManagerFactory} implementations. The names can be used to obtain a {@link TransactionManagerFactory} from {@link #getTransactionManagerFactory}.

Returns: Names of {@link TransactionManagerFactory} implementations

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