Using RequestFactory interfaces on the server

16 views
Skip to first unread message

Jakob Mar

unread,
Jan 10, 2012, 11:44:03 AM1/10/12
to Google Web Toolkit
Hi,

I want to be able to use code like this on the client and server:

MyRequestFactory myFactory ...

myFactory.getFooFinder().find(queryString).fire(new
Receiver<List<FooProxy>>(){
public void onSuccess(List<FooProxy> response){
....
}
});

Has anyone used RequestFactory interfaces like this on the server?

Thanks.

Aidan O'Kelly

unread,
Jan 10, 2012, 12:12:15 PM1/10/12
to google-we...@googlegroups.com
Yes you can do it, using  RequestFactorySource, and an InProcessRequestTransport . 

The sample in the InProcessRequestTransport javadoc uses 'RequestFactoryMagic', this is the old name of RequestFactorySource. 



--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Reply all
Reply to author
Forward
0 new messages