org.scopemvc.core
Class ModelManager

java.lang.Object
  |
  +--org.scopemvc.core.ModelManager
Direct Known Subclasses:
ActionManager, EditorManager, PropertyManager

public abstract class ModelManager
extends java.lang.Object

ModelManagers provide decoupled operations on model objects including access to properties and invocation of actions. A manager instance for a specific model object is obtained by a static factory method in the manager subclass.

Other managers can be plugged in as appropriate to provide different functionality required on model objects. The base Scope implementation provides PropertyManager, ActionManager and EditorManager implementations.

Version:
$Revision: 1.7 $ $Date: 2002/09/06 16:11:47 $
Author:
Steve Meyfroidt

Constructor Summary
ModelManager()
           
 
Method Summary
 java.lang.Class getModelClass()
          Gets the class of the models managed by this manager.
protected static ModelManager make(java.lang.String inManagerName, java.lang.Class inModelClass)
          Create a manager by looking up the class from ScopeConfig by the manager name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelManager

public ModelManager()
Method Detail

make

protected static ModelManager make(java.lang.String inManagerName,
                                   java.lang.Class inModelClass)
Create a manager by looking up the class from ScopeConfig by the manager name.

Parameters:
inManagerName - The name of the manager
inModelClass - The class of the models that can be managed by the new manager instance
Returns:
A new manager instance

getModelClass

public java.lang.Class getModelClass()
Gets the class of the models managed by this manager.

Returns:
The modelClass value


Copyright © 2000-2002 The Scope Team. All Rights Reserved.