View Javadoc

1   /*
2    * Copyright (c) 2005, The K-Wf Grid Consortium
3    * Fraunhofer Institute for Computer Architecture and Software Technology
4    * See http://www.kwfgrid.eu and http://www.first.fraunhofer.de for more details.
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  }