org.jomc
Class ObjectManagerFactory

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

@Generated(value="org.jomc.tools.SourceFileProcessor 1.2",
           comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2")
public abstract class ObjectManagerFactory
extends Object

Factory for the ObjectManager singleton.

Identifier:
org.jomc.ObjectManagerFactory
Name:
JOMC API
Abstract:
Yes
Final:
Yes
Stateless:
No

Version:
1.0
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.SourceFileProcessor 1.2",
           comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2")
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-2012 The JOMC Project. All Rights Reserved.Get JOMC at SourceForge.net. Fast, secure and Free Open Source software downloads
Please note that this documentation is maintained by non-native english speaking authors. As such, you may encounter phrases or wordings which seem imprecise or may even have a totally different meaning to native english speaking readers than what the individual author was trying to express. If you are a native english speaking reader and find any such phrases or wordings we kindly ask you to send an email to the corresponding author and help us improve this documentation in order to avoid misunderstandings. You will find the authors' email addresses at the top of each class. Please accept our apologies for any inconvenience caused.