org.formaria.aria
Class PojoMethodReference

java.lang.Object
  extended by org.formaria.aria.MethodReference
      extended by org.formaria.aria.PojoMethodReference

public class PojoMethodReference
extends MethodReference

A method reference wrapping pojo model nodes

Copyright (c) Formaria Ltd., 2008

License: see license.txt


Field Summary
 DataModel model
           
 DataModel[] nodes
           
 
Fields inherited from class org.formaria.aria.MethodReference
args, clazz, instance, method
 
Constructor Summary
PojoMethodReference(java.lang.Class cls, DataModel ownerModel, java.lang.reflect.Method m, DataModel[] arguments, boolean updateable)
          Create a new method reference
 
Method Summary
 void updateArgs()
          Update the arguments and instance references, looking up the model nodes as needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

public DataModel[] nodes

model

public DataModel model
Constructor Detail

PojoMethodReference

public PojoMethodReference(java.lang.Class cls,
                           DataModel ownerModel,
                           java.lang.reflect.Method m,
                           DataModel[] arguments,
                           boolean updateable)
Create a new method reference

Parameters:
cls - the class containing teh method
ownerInstance - the instance of the object containing the method
m - the method
arguments - the argument values
updateable - true if the values need to be updated prior to a call. A pojo may contain a node value that varies during the life of an application and the current value of this node may be requred for an individual call.
Method Detail

updateArgs

public void updateArgs()
Update the arguments and instance references, looking up the model nodes as needed.

Overrides:
updateArgs in class MethodReference