1
2
3
4
5
6 package net.kwfgrid.gworkflowdl.protocol;
7
8 import net.kwfgrid.gworkflowdl.protocol.calls.IMethodCall;
9 import net.kwfgrid.gworkflowdl.protocol.calls.MethodCallException;
10
11 /***
12 Interface for a method call strategy.
13 */
14 public interface IMethodCallStrategy {
15 /***
16 Execute the given method call.
17 @param call The call to execute.
18 @return The generic return value of the method call.
19 @exception MethodCallException The method call can throw any kind of exception which is wrapped into a MethodCallException.
20 */
21 Object execute(IMethodCall call) throws MethodCallException;
22 }