public class MethodCoordinator extends Object
| Constructor and Description |
|---|
MethodCoordinator(String className,
String methodName)
Constructor to specify a class and method to execute
|
| Modifier and Type | Method and Description |
|---|---|
Object |
executeOnce(Object receiver,
Object[] args)
Execute this instance's class/method one time only.
|
boolean |
methodWasExecuted()
Return whether this instance's method has been executed or not.
|
public Object executeOnce(Object receiver, Object[] args)
receiver - The object to receive the method; can be null
for a static method.args - The arguments used to invoke the method.public boolean methodWasExecuted()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.