com.sybase.uep.bobclient.data
Class MBOModelFactory

java.lang.Object
  extended by com.sybase.uep.bobclient.data.MBOModelFactory

public class MBOModelFactory
extends java.lang.Object

Factory that's responsible for creating CommonMBOModel instances.

Author:
haowang

Field Summary
protected static java.util.Hashtable _modelRep
          The MBOModel repository
 
Method Summary
 CommonMBOModel getCommonMBOModel(java.lang.String id)
          Gets a CommonMBOModel instance.
static MBOModelFactory getInstance()
          Gets a MBOModelFactory instance
 SPMBOModel getInvisibleMBOModel(java.lang.String packageName, java.lang.String className)
          Create InvisibleSPMBOModel
 void regMBOModel(java.lang.String id, CommonMBOModel model)
          Register a CommonMBOModel instance to the model repository, this method should only be called by custom coding when user wants to use their own MBO model.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_modelRep

protected static java.util.Hashtable _modelRep
The MBOModel repository

Method Detail

getInstance

public static MBOModelFactory getInstance()
Gets a MBOModelFactory instance

Returns:

getCommonMBOModel

public CommonMBOModel getCommonMBOModel(java.lang.String id)
Gets a CommonMBOModel instance.

Parameters:
id -
Returns:

getInvisibleMBOModel

public SPMBOModel getInvisibleMBOModel(java.lang.String packageName,
                                       java.lang.String className)
Create InvisibleSPMBOModel

Parameters:
packageName -
className -
Returns:

regMBOModel

public void regMBOModel(java.lang.String id,
                        CommonMBOModel model)
Register a CommonMBOModel instance to the model repository, this method should only be called by custom coding when user wants to use their own MBO model.

Parameters:
id -
model -