Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.scopemvc.model.beans
Class BeansActionManager  view BeansActionManager download BeansActionManager.java

java.lang.Object
  extended byorg.scopemvc.core.ModelManager
      extended byorg.scopemvc.core.ActionManager
          extended byorg.scopemvc.model.beans.BeansActionManager

public class BeansActionManager
extends org.scopemvc.core.ActionManager

BeansActionManager is a org.scopemvc.core.ActionManager that handles the actions (invokable methods) of JavaBean model objects.

Version:
$Revision: 1.5 $ $Date: 2002/01/26 09:46:20 $

Field Summary
private static org.apache.commons.logging.Log LOG
           
 
Fields inherited from class org.scopemvc.core.ActionManager
 
Fields inherited from class org.scopemvc.core.ModelManager
modelClass
 
Constructor Summary
BeansActionManager()
           
 
Method Summary
 boolean canDoAction(java.lang.Object inModel, org.scopemvc.core.ModelAction inAction)
          Can this model do the passed org.scopemvc.core.ModelAction?
 java.lang.Object doAction(java.lang.Object inModel, org.scopemvc.core.ModelAction inAction, java.lang.Object[] inParameters)
          Generic interface to perform arbitrary actions on a model object.
protected  java.lang.reflect.Method getMethod(java.lang.Object inModel, org.scopemvc.core.ModelAction inAction)
          Find a Method matching the prototype in the passed ModelAction for the passed model object, using the BeanInfo to introspect the model as a JavaBean.
protected static boolean matchesItem(java.lang.Class inPrototypeClass, java.lang.Class inParameterClass)
          Utility method to determine if a given class matches another class, taking into account primitive<->class mapping and inheritance.
protected static boolean matchesPrototype(java.lang.Class[] inPrototypeClasses, java.lang.Class[] inParameterClasses)
          Utility method to determine if a given parameter class array matches the supplied prototype class array
 
Methods inherited from class org.scopemvc.core.ActionManager
getInstance, getInstance
 
Methods inherited from class org.scopemvc.core.ModelManager
make
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.commons.logging.Log LOG
Constructor Detail

BeansActionManager

public BeansActionManager()
Method Detail

doAction

public java.lang.Object doAction(java.lang.Object inModel,
                                 org.scopemvc.core.ModelAction inAction,
                                 java.lang.Object[] inParameters)
                          throws java.lang.Exception
Description copied from class: org.scopemvc.core.ActionManager
Generic interface to perform arbitrary actions on a model object.


canDoAction

public boolean canDoAction(java.lang.Object inModel,
                           org.scopemvc.core.ModelAction inAction)
Description copied from class: org.scopemvc.core.ActionManager
Can this model do the passed org.scopemvc.core.ModelAction?


getMethod

protected java.lang.reflect.Method getMethod(java.lang.Object inModel,
                                             org.scopemvc.core.ModelAction inAction)
Find a Method matching the prototype in the passed ModelAction for the passed model object, using the BeanInfo to introspect the model as a JavaBean.


matchesPrototype

protected static boolean matchesPrototype(java.lang.Class[] inPrototypeClasses,
                                          java.lang.Class[] inParameterClasses)
Utility method to determine if a given parameter class array matches the supplied prototype class array


matchesItem

protected static boolean matchesItem(java.lang.Class inPrototypeClass,
                                     java.lang.Class inParameterClass)
Utility method to determine if a given class matches another class, taking into account primitive<->class mapping and inheritance.