-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use GWT generator to generate the ginjector #63
Comments
Nice job! :) |
I just tried to use the ApplicationController. The Ginjector is emitted correctly in the GWT .generated folder but the GinjectorInspector fails to find the class with "The configuration property 'gin.ginjector' is 'com.example.client.gin.ClientInjector' which doesn't identify a type inheriting from 'Ginjector'.". |
the gin.ginjector property must be set to ClientGinjector you don't need any ginjector anymore. Known issue: Gatekeepers are not included yet and I have to find an elegant On Fri, Dec 14, 2012 at 12:10 PM, Peter Leibiger
Christian Goudreau | CEO - Président |
I have no manual Ginjector. Only the one that is being generated, however the GinjectorInspector still fails when trying to generate a Proxy. I have already implemented Gatekeepers and fixed the PresenterBundles which don't work atm. I can open a pull request once I can get it running. |
Bizarre, do you have the latest in your maven repo? ClientGinjector doesn't extends Ginjector into de gen folder? That's really On Sat, Dec 15, 2012 at 1:32 PM, Peter Leibiger notifications@github.comwrote:
Christian Goudreau | CEO - Président |
I build from master. It does extent Ginjector, the code is solid but the class can not be found by the inspector. |
Uhm, I've just sent a pull request on the GWTP-Samples for the basic I had to clean my .m2/com/gwtplatorm repo when I updated to the last On Sat, Dec 15, 2012 at 3:28 PM, Peter Leibiger notifications@github.comwrote:
Christian Goudreau | CEO - Président |
I got it to work now in a complex setup with 40+ presenters in multiple bundles, also with gatekeepers and @DefaultGatekeeper. Problem was that the class given in 'gin.ginjector' property has to be named ClientGinjector, mine was called ClientInjector. This should be documented more thoroughly or maybe we can find a way to allow arbitrary a class name. While we are at it, maybe we can also try to generate the ProviderBundles? I will prepare a pull request tomorrow for the gatekeeper stuff. |
Cool! Good job! Yes, we could mark it more clearly in the Javadoc. The doc So much to do! A new undocumented feature is that you can now add as a fourth parameters On Sun, Dec 16, 2012 at 10:24 AM, Peter Leibiger
Christian Goudreau | CEO - Président |
Wow nice job! |
Got around to work on this a little more. |
Sorry to butt in, but where is the gen folder now? |
(using trick from here for now : https://groups.google.com/forum/?fromgroups=#!topic/gwt-platform/QnhvN979d6g) |
By default in |
the gen folder is where ever you chosen. You have to specify -gen generated if you want it to be in the "generated" folder. I personally always use -gen gen |
I think something may have changed in GWTP 0.8+ or GWT 2.5 as I now get my When I use -gen gen I get it in my project root This is all fine for me , but it's certainly less useful for beginners than On 16 January 2013 00:35, christiangoudreau notifications@github.comwrote:
Cheers! |
I just checked with the samples, if you don't provide the |
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.
See issue 207 on GoogleCode
The text was updated successfully, but these errors were encountered: