org.jomc
Class ObjectManagerFactory

Package class diagram package ObjectManagerFactory
java.lang.Object
  extended by org.jomc.ObjectManagerFactory

@Generated(value="org.jomc.tools.JavaSources",
           comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-5/jomc-tools")
public class ObjectManagerFactory
extends Object

Factory for the ObjectManager singleton.

Version:
$Id: ObjectManagerFactory.java 751 2009-10-06 06:32:50Z schulte2005 $
Author:
Christian Schulte 1.0

Field Summary
private static String DEFAULT_FACTORY_CLASSNAME
          Constant for the name of the class providing the default getObjectManager() method.
private static String DEFAULT_IMPLEMENTATION_CLASSNAME
          Constant for the name of the class providing the default ObjectManager implementation.
private static String SYS_FACTORY_CLASSNAME
          Constant for the name of the system property holding the getObjectManager() method's class name.
private static String SYS_IMPLEMENTATION_CLASSNAME
          Constant for the name of the system property holding the ObjectManager implementation class name.
 
Constructor Summary
ObjectManagerFactory()
          Creates a new ObjectManagerFactory instance.
 
Method Summary
static ObjectManager getObjectManager()
          Gets the ObjectManager singleton instance.
static ObjectManager newObjectManager()
          Creates a new ObjectManager instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FACTORY_CLASSNAME

private static final String DEFAULT_FACTORY_CLASSNAME
Constant for the name of the class providing the default getObjectManager() method.

See Also:
Constant Field Values

DEFAULT_IMPLEMENTATION_CLASSNAME

private static final String DEFAULT_IMPLEMENTATION_CLASSNAME
Constant for the name of the class providing the default ObjectManager implementation.

See Also:
Constant Field Values

SYS_FACTORY_CLASSNAME

private static final String SYS_FACTORY_CLASSNAME
Constant for the name of the system property holding the getObjectManager() method's class name.

See Also:
Constant Field Values

SYS_IMPLEMENTATION_CLASSNAME

private static final String SYS_IMPLEMENTATION_CLASSNAME
Constant for the name of the system property holding the ObjectManager implementation class name.

See Also:
Constant Field Values
Constructor Detail

ObjectManagerFactory

@Generated(value="org.jomc.tools.JavaSources",
           comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-5/jomc-tools")
public ObjectManagerFactory()
Creates a new ObjectManagerFactory instance.

Method Detail

getObjectManager

public static ObjectManager getObjectManager()
Gets the ObjectManager singleton instance.

This method is controlled by system property org.jomc.ObjectManagerFactory providing the name of a class declaring a

public static ObjectManager getObjectManager()
method called by this method to get the instance to return.

The newObjectManager method should be used by getObjectManager implementors to retrieve a new ObjectManager implementation.

Returns:
The ObjectManager singleton instance.
Throws:
ObjectManagementException - if getting the singleton instance fails.
See Also:
newObjectManager()

newObjectManager

public static ObjectManager newObjectManager()
Creates a new ObjectManager instance.

The object manager implementation returned by this method is controlled by system property org.jomc.ObjectManager providing the name of the ObjectManager implementation to return.

Returns:
A new ObjectManager instance.
Throws:
ObjectManagementException - if creating a new ObjectManager instance fails.


Copyright © 2005-2009 The JOMC Project. All Rights Reserved.