au.gov.tas.dpiwe.mr.util
Class MethodCall

java.lang.Object
  extended by au.gov.tas.dpiwe.mr.util.Messenger
      extended by au.gov.tas.dpiwe.mr.util.MethodCall
All Implemented Interfaces:
Serializable, Runnable

public class MethodCall
extends Messenger
implements Runnable, Serializable

A method call is an invocation of a particular method on a particular object with a particular list of actual parameters.

The call is executed by calling run().

Since:
Mr Architecture 1.3
Version:
1.0.0.2
Author:
Kade Hansson
See Also:
Serialized Form

Field Summary
protected  SerializableMethod method
          The method this call will invoke.
protected  Object[] parameters
          The actual parameters passed to the method invocation.
protected  Object target
          The object the method will be invoked with respect to.
 
Fields inherited from class au.gov.tas.dpiwe.mr.util.Messenger
console, error, exceptionMessageTable, exceptionsToConsole, exceptionsToError, Level_Debug, Level_Exception, Level_None, Level_Normal, messageLevel
 
Constructor Summary
MethodCall(Method method, Object target)
           
MethodCall(Method method, Object target, Object[] parameters)
           
MethodCall(SerializableMethod method, Object target)
           
MethodCall(SerializableMethod method, Object target, Object[] parameters)
           
 
Method Summary
 Object[] addParameter(Object newParameter)
           
 void run()
           
 Object runForResult()
           
 
Methods inherited from class au.gov.tas.dpiwe.mr.util.Messenger
debugEmptyMessage, debugEmptyMessage, debugMessage, debugMessage, debugMessage, debugMessageFirstPart, debugMessageFirstPart, debugMessageLastPart, debugMessageLastPart, debugMessagePart, debugMessagePart, debugStackTrace, debugStackTrace2, emptyMessage, emptyMessage, emptyMessage, emptyMessage, getMessageLevel, isTweenMessage, message, message, message, message, message, message, messageFirstPart, messageFirstPart, messageFirstPart, messageFirstPart, messageLastPart, messageLastPart, messageLastPart, messageLastPart, messagePart, messagePart, messagePart, messagePart, messagePart, messagePart, prettyException, queryReport, setConsoleOutput, setConsoleOutput, setErrorOutput, setErrorOutput, setMessageLevel, setOutput, stackTrace, stackTrace2, success, success
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method

protected SerializableMethod method
The method this call will invoke.


target

protected Object target
The object the method will be invoked with respect to.


parameters

protected Object[] parameters
The actual parameters passed to the method invocation.

Constructor Detail

MethodCall

public MethodCall(Method method,
                  Object target)

MethodCall

public MethodCall(Method method,
                  Object target,
                  Object[] parameters)

MethodCall

public MethodCall(SerializableMethod method,
                  Object target)

MethodCall

public MethodCall(SerializableMethod method,
                  Object target,
                  Object[] parameters)
Method Detail

addParameter

public Object[] addParameter(Object newParameter)

run

public void run()
Specified by:
run in interface Runnable

runForResult

public Object runForResult()