neo09 / gwt-platform

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

Use GWT generator to generate the ginjector #207

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We require that the users manually add a method to their ginjector whenever 
they create a new presenter. However it may be possible to automatically 
generate the ginjector with a GWT generator. Pierre did this in MVP4G, as 
discussed here:
http://groups.google.com/group/mvp4g/browse_thread/thread/65a6537d0e02eee5

And visible here:
http://code.google.com/p/mvp4g/source/browse/tags/mvp4g-1.2.0/sources/src/main/j
ava/com/mvp4g/util/Mvp4gConfigurationFileWriter.java

I don't know if we could do the same in our case, but it is worth investigating.

Original issue reported on code.google.com by philippe.beaudoin on 17 Sep 2010 at 7:14

GoogleCodeExporter commented 9 years ago

Original comment by philippe.beaudoin on 22 Sep 2010 at 1:35

GoogleCodeExporter commented 9 years ago
Currently working on a generic way to enable this by allowing our custom 
ginjector to support methods of the form:

Foo getFoo(Annotation annotation);
Provider<Foo> getFooProvider(Annotation annotation);
AsyncProvider<Foo> getFooAsyncProvider(Annotation annotation);

Original comment by philippe.beaudoin on 19 Nov 2010 at 9:49

GoogleCodeExporter commented 9 years ago
The idea is discussed in this thread:
http://groups.google.com/group/google-gin/browse_thread/thread/7dd7382be803e00b

Original comment by philippe.beaudoin on 19 Nov 2010 at 10:00

GoogleCodeExporter commented 9 years ago
Bumping to 0.7, preparing release 0.6.

Original comment by philippe.beaudoin on 6 Jun 2011 at 8:17

GoogleCodeExporter commented 9 years ago
The best way to do this would probably be to use the new Gin extionsion 
mechanism.

Original comment by philippe.beaudoin on 5 Jul 2011 at 2:44

GoogleCodeExporter commented 9 years ago

Original comment by philippe.beaudoin on 5 Jul 2011 at 2:44

GoogleCodeExporter commented 9 years ago
Hi. Not sure that i am posting this on the right place.

Also a solution to this might be to lie to gin generators - it will involve 
extending/overriding/proxing some of the classes from gin, just to make the 
injector generator think that presenter getter methods are in the injector 
interface.

It is a bit hacky, but seems to work. Maybe it worth checking if no other, more 
elegant way is possible. 

Original comment by TheRal...@gmail.com on 21 Oct 2011 at 4:12

GoogleCodeExporter commented 9 years ago

Original comment by philippe.beaudoin on 1 Feb 2012 at 6:52

GoogleCodeExporter commented 9 years ago
I'm starting to investigate what it will take to help contribute to issue 207. 
Join this thread if your interested in the adventure on this particular topic.

https://plus.google.com/b/108301844343812548203/108301844343812548203/posts

Original comment by branflak...@gmail.com on 26 Jul 2012 at 10:44

GoogleCodeExporter commented 9 years ago
See https://github.com/ArcBees/GWTP/issues/63 for more information

Original comment by goudreau...@gmail.com on 6 Dec 2012 at 5:09