These proposals are great. I find convenient the signature matching that Spring GemFire provides. How difficult would it be to create a late-binding call to a matching signature based on the argument types for developer convenience?
The following is from http://docs.spring.io/spring-data-gemfire/docs/1.4.4.RELEASE/reference/html/function-annotations.html Object[] args = new Object[]{"hello", 123} Then the Spring container should be able to bind to any method signature similar to the following. Let's ignore the return type for the moment: public Object method1(String s1, int i2) {...}public Object method2(Map<?,?> data, String s1, int i2) {...}public Object method3(String s1, Map<?,?>data, int i2) {...}public Object method4(String s1, Map<?,?> data, Set<?> filter, int i2) {...}public void method4(String s1, Set<?> filter, int i2, Region<?,?> data) {...}public void method5(String s1, ResultSender rs, int i2);public void method6(FunctionContest fc); The general rule is that once any additional arguments, i.e., region data and filter, are resolved the remaining arguments must correspond exactly, in order and type, to the expected calling parameters. *Wes Williams | Pivotal Sr. **Data Engineer* 781.606.0325 http://pivotal.io/big-data/pivotal-gemfire On Wed, Dec 16, 2015 at 12:27 PM, Dan Smith <[email protected]> wrote: > Hi all, > > Ashvin, Gester and I have gone over our function execution API, and we have > some proposals for how we should improve the function service API to make > it a little bit easier to use. Please take a look at the proposals on the > wiki and let us know what you think: > > > https://cwiki.apache.org/confluence/display/GEODE/Function+Service+Usability+Improvments > > -Dan >
