org.apache.jdo.tck.pc.company
Class CompanyFactoryRegistry

java.lang.Object
  extended byorg.apache.jdo.tck.pc.company.CompanyFactoryRegistry

public class CompanyFactoryRegistry
extends java.lang.Object


Method Summary
static CompanyFactory getInstance()
          Get the currently registered factory.
static void registerFactory()
          Register the default factory.
static void registerFactory(CompanyFactory factory)
          Register the factory.
static void registerFactory(javax.jdo.PersistenceManager pm)
          Register a factory using the default factory name from the system property.
static void registerFactory(java.lang.String factoryClassName, javax.jdo.PersistenceManager pm)
          Register a factory using the specified factoryName parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CompanyFactory getInstance()
Get the currently registered factory.

Returns:
the factory

registerFactory

public static void registerFactory()
Register the default factory.


registerFactory

public static void registerFactory(javax.jdo.PersistenceManager pm)
Register a factory using the default factory name from the system property. The factory must be available in the current class path and have a public constructor taking a PersistenceManager as a parameter.

Parameters:
pm - the PersistenceManager

registerFactory

public static void registerFactory(java.lang.String factoryClassName,
                                   javax.jdo.PersistenceManager pm)
Register a factory using the specified factoryName parameter. The factory class must be loadable by the current context classloader and have a public constructor taking a PersistenceManager as a parameter.

Parameters:
factoryClassName - the fully-qualified class name of the factory
pm - the PersistenceManager

registerFactory

public static void registerFactory(CompanyFactory factory)
Register the factory.

Parameters:
factory - the factory


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.