"Methods that return a Request object in the client interface are implemented as static methods in the service class. Alternatively, they may be implemented as instance methods in a service object returned by a ServiceLocator."
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/EcdfWQm-gIQJ.
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.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/g3VZ4gRhMA4J.
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.
I didn't understand your exemple. Who is responsible for doing all of this stuff is the requestfactory framework, not you
Of course in this example using a SL doesn't seem nice..but the example itself isn't really nice to me :)
public void setUser(final Integer userId) {this.user = User.find(userId); // this is what I need to do using the "static" way// below is what I have to do when I'm using SL// MainServiceLocator mainServiceLocator = new MainServiceLocator();// UserDAOService userService = (UserDAOService) mainServiceLocator.getInstance(UserDAOService.class);// userService.find(User.class, userId)}