com.counterclaim.openefm.model
Class ModelFactory

java.lang.Object
  extended bycom.counterclaim.openefm.model.ModelFactory

Deprecated. see Wiki for OpenEFM issues

public class ModelFactory
extends java.lang.Object

Creates ObjectModel instances on demand.

 

Field Summary
private static org.apache.log4j.Logger log
          Deprecated.  
private static java.util.Map modelMap
          Deprecated. Map of *Model.NAME strings to *Model.class Class objects.
 
Constructor Summary
private ModelFactory()
          Deprecated. This class should never be instanciated, so the default constructer is private.
 
Method Summary
static ObjectModel createModel(java.lang.String modelName)
          Deprecated. Creates a new ObjectManager subtype for the name provided.
static void putModel(java.lang.String modelName, java.lang.Class modelClass)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log
Deprecated. 

modelMap

private static java.util.Map modelMap
Deprecated. 
Map of *Model.NAME strings to *Model.class Class objects.

Constructor Detail

ModelFactory

private ModelFactory()
Deprecated. 
This class should never be instanciated, so the default constructer is private.

Method Detail

createModel

public static ObjectModel createModel(java.lang.String modelName)
                               throws ModelException
Deprecated. 
Creates a new ObjectManager subtype for the name provided. Example:
    UserProfileModel userModel = (UserProfileModel) ModelFactory.createModel(UserProfileModel.NAME);
 

Throws:
ModelException
Parameters:
modelName - of the ObjectModel desired. Taken from *Model.NAME.
Returns:
The new ObjectModel. Cast this to the correct subtype! Returns null if no model exists by given name.

putModel

public static void putModel(java.lang.String modelName,
                            java.lang.Class modelClass)
Deprecated. 


Copyright © 2002 counterclaim.com. All Rights Reserved.