ovm.polyd.runemu
Class RunaboutLogInvocation

java.lang.Object
  extended by ovm.polyd.policy.Invocation
      extended by ovm.polyd.runemu.RunaboutLogInvocation

public class RunaboutLogInvocation
extends Invocation

A logging invocation policy suitable to print a trace of all visit methods in a Runabout emulation. that prints on the standard output.


Constructor Summary
RunaboutLogInvocation()
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object obj, java.lang.reflect.Method m, java.lang.Object[] args)
          Invoke one method, using the given argument, performing additional actions whenever necessary.
static Invocation theInvocation()
          Returns an instance of this invocation policy.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunaboutLogInvocation

public RunaboutLogInvocation()
Method Detail

theInvocation

public static Invocation theInvocation()
Returns an instance of this invocation policy.

Returns:
an instance of this policy (a singleton)

invoke

public java.lang.Object invoke(java.lang.Object obj,
                               java.lang.reflect.Method m,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Description copied from class: Invocation
Invoke one method, using the given argument, performing additional actions whenever necessary.

Overrides:
invoke in class Invocation
Parameters:
obj - the instance to which the message is sent
m - the method
args - the arguments (including wrapped primitives)
Returns:
the result of the method invocation, or null
Throws:
java.lang.Throwable