org.exolab.castor.persist
Class PersistenceFactoryRegistry

java.lang.Object
  extended by org.exolab.castor.persist.PersistenceFactoryRegistry

public class PersistenceFactoryRegistry
extends java.lang.Object

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

Version:
$Revision: 1.3 $ $Date: 2004/10/01 13:25:07 $
Author:
Assaf Arkin

Constructor Summary
PersistenceFactoryRegistry()
           
 
Method Summary
static java.lang.String[] getFactoryNames()
          Returns the names of all the configured persistence factories.
static PersistenceFactory getPersistenceFactory(java.lang.String name)
          Returns a persistence factory with the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceFactoryRegistry

public PersistenceFactoryRegistry()
Method Detail

getPersistenceFactory

public static PersistenceFactory getPersistenceFactory(java.lang.String name)
Returns a persistence factory with the specified name. The factories are loaded from the Castor properties file. Returns null if the named factory is not supported.

Parameters:
name - The factory name
Returns:
The PersistenceFactory object, null if no factory with this name exists

getFactoryNames

public static java.lang.String[] getFactoryNames()
Returns the names of all the configured persistence factories. The names can be used to obtain a factory from getPersistenceFactory(java.lang.String).

Returns:
Names of persistence factories


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