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-11/jomc-tools")
public class ObjectManagerFactory
extends Object

Factory for the ObjectManager singleton.

Version:
$Id: ObjectManagerFactory.java 1102 2009-12-07 03:01:58Z schulte2005 $
Author:
Christian Schulte 1.0

Constructor Summary
ObjectManagerFactory()
          Creates a new ObjectManagerFactory instance.
 
Method Summary
static ObjectManager getObjectManager(ClassLoader classLoader)
          Gets the ObjectManager singleton instance.
static ObjectManager newObjectManager(ClassLoader classLoader)
          Creates a new ObjectManager instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectManagerFactory

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

Method Detail

getObjectManager

public static ObjectManager getObjectManager(ClassLoader classLoader)
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( ClassLoader )
method called by this method to get the instance to return.

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

Parameters:
classLoader - The class loader to use for getting the singleton instance; null to use the platform's bootstrap class loader.
Returns:
The ObjectManager singleton instance.
Throws:
ObjectManagementException - if getting the singleton instance fails.
See Also:
newObjectManager(java.lang.ClassLoader)

newObjectManager

public static ObjectManager newObjectManager(ClassLoader classLoader)
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 class to return a new instance of.

Parameters:
classLoader - The class loader to use for creating the instance; null to use the platform's bootstrap class loader.
Returns:
A new ObjectManager instance.
Throws:
ObjectManagementException - if creating a new ObjectManager instance fails.


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