GWT RequestFactory and Locator
Hello,
It seems that RequestFactory framework requires to store my object
access functions inside domain objects.
e.g
@Service(value = User.class, locator = MyServiceLocator.class)
public interface UserRequest extends RequestContext {
Request<UserProxy> getCurrentUser();
}
@ProxyFor(value = User.class, locator = UserLocator.class)
public interface UserProxy extends EntityProxy {
public String getName() ;
}
public class User {
...
public String getName() {...}
public User getCurrentUser() {...}
}
Is it possible to move getCurrentUser() method to the UserLocator?
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home