gabrial11392 / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
0 stars 0 forks source link

Use GWT generator for complex proxy #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now, non-standard or more complex proxys still have to be done 
manually 
(see for example LinkColumnProxy). It would be nice to be able to generate 
these too.

One way could be to let the user specify a base class different than 
ProxyImpl that the generator would derive from. Within its delayedBind() 
method, the generated class would call some kind of 
delayedBind(MyGinjector) 
method on this custom parent class, which could register handlers or do 
whatever it wants.

Original Issue:
http://code.google.com/p/puzzlebazar/issues/detail?id=83

Original issue reported on code.google.com by philippe.beaudoin on 27 Mar 2010 at 6:00

GoogleCodeExporter commented 9 years ago
Bumpled to V1.0. We can live with slightly more limited automatic proxies for a 
while.

Original comment by philippe.beaudoin on 1 Apr 2010 at 6:38

GoogleCodeExporter commented 9 years ago
Custom proxies are mostly needed to allow the presenter to answer custom events 
even when it has not been yet initialized. In other words, the presenter needs 
to "wakeup" on various custom events. A simple way to allow this would be to 
let the user annotate some event-handling methods, in the presenter, with 
@ProxyEvent. The proxy would automatically identify these methods, register 
towards them, and forward the call to the presenter.

Original comment by philippe.beaudoin on 20 Jun 2010 at 10:11

GoogleCodeExporter commented 9 years ago
I will update the wiki with the documentation on this. It should make it much 
easier to define custom messages for any interaction between presenters.

Original comment by philippe.beaudoin on 21 Jun 2010 at 4:38