Manuel Carrasco Moñino has uploaded a new patch set (#2).

Change subject: RequestFactory: Enabling support for interfaces in @ProxyFor.
......................................................................

RequestFactory: Enabling support for interfaces in @ProxyFor.

Fixes issues #7509 and #5762.
Patch moved from rietveld (http://gwt-code-reviews.appspot.com/1764804/)

RequestFactory should allow that client-proxies point to interfaces in server side, facilitating different implementations of the object.

This feature allows as well that we could reuse proxy interfaces in both sides, what reduces the code and allows to use the same value class in both sides, example:

@ProxyFor(value = A.class, locator = ALocator.class)
public interface A {
  String getSomething();
  void setSomething(String s);
}

public class ALocator extends Locator<A, String>  {
  @Override
  public A create(Class<? extends A> clazz) {
    return new AImpl();
  }
  ....
}

public class AImpl implements A {
  String getSomething(){return null}
  void setSomething(String s){}
}

Change-Id: I273ed2c403b275f4c9bec2b7e7ba72a3d05930b9
---
M requestfactory/build.xml
M user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java M user/test/com/google/web/bindery/requestfactory/gwt/RequestFactorySuite.java A user/test/com/google/web/bindery/requestfactory/gwt/client/ProxyForInterfacesTest.java A user/test/com/google/web/bindery/requestfactory/server/ProxyForInterfacesJreTest.java M user/test/com/google/web/bindery/requestfactory/vm/RequestFactoryJreSuite.java
6 files changed, 214 insertions(+), 15 deletions(-)


--
To view, visit https://gwt-review.googlesource.com/2961
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I273ed2c403b275f4c9bec2b7e7ba72a3d05930b9
Gerrit-PatchSet: 2
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Manuel Carrasco Moñino <manuel.carrasc...@gmail.com>

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to