mkouba commented on issue #15: More flexibility to parsing and passing JSON 
input/out in Java runtime
   I'd try to avoid `main(String args[])` if possible. Instead, we could allow 
user to specify a `java.util.function.Function` implementation as a main class. 
And then when initializing action inspect the actual type arguments and make 
use of `, Type)` and 
`, Type)` to perform the conversion 
automatically. So that a user can simply write something like:
   class ListRevertAction implements Function<Foo, Foo> {
           public Foo apply(Foo input) {
               return input;
      static class Foo {
           private List<String> value;
           public List<String> getValue() {
               return value;
           public void setValue(List<String> value) {
               this.value = value;
   I can try to send a PR if you are interested ;-)

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

Reply via email to