Saturday, February 26, 2011

Method Reference Delegate or so

Hi all,

I'm looking for a solution how to transport a method reference. Usecase is to wrap some async method calls and only have one success handler after all are doen.

E.g. I want something like this (which would easily possible in JS):

Requestor req = new Requestor();
req.add(Foo.method, param, param);
req.add(Bar.method, param);
req.do(new SimpleMethodCallback<JSONValue>() {
    @Override
    public void onSuccess() {
    // ...
    }
});

Someone has a solution how to accomplish this?

Thanks in advance,
Andi

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment