ovm.polyd.runemu
Class RunaboutLogInvocation
java.lang.Object
ovm.polyd.policy.Invocation
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.
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 |
RunaboutLogInvocation
public RunaboutLogInvocation()
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 sentm
- the methodargs
- the arguments (including wrapped primitives)
- Returns:
- the result of the method invocation, or
null
- Throws:
java.lang.Throwable