I want to be able to use different locators for the same domain object. I use Twig and it has an option to load an object fully or partially. When I run the lite request, the wrong locator (TwigLocator) is used instead of TwigLiteLocator. My current implementation is:
Proxies @ProxyFor(value = MyDomain.class, locator = TwigLocator.class) public interface MyDomainProxy extends EntityProxy {} @ProxyFor(value = MyDomain.class, locator = TwigLiteLocator.class) public interface MyDomainLiteProxy extends EntityProxy {} Request @Service(value = MyDao.class, locator = DaoServiceLocator.class) public interface MyRequest extends RequestContext { Request<List<MyDomainProxy>> fetchRange(Integer start, Integer length); Request<Integer> getCount(); Request<List<MyDomainLiteProxy>> fetchRangeLite(Integer start, Integer length); } DAO public List<MyDomain> fetchRange(Integer start, Integer length) { ... } public List<MyDomain> fetchRangeLite(Integer start, Integer length) { ... } -- 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/-/QsOW5kNGwo4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.