Sorry Guys... I don't get it... how singleton scope is supported it? Every
time, user refreshes page, a new module is created. Right?
For more information:
http://code.google.com/p/google-gin/wiki/GuiceCompatibility
--
You received this message because you are subscribed to the Google Groups "google-gin" group.
To post to this group, send email to googl...@googlegroups.com.
To unsubscribe from this group, send email to google-gin+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-gin?hl=en.
have same question as yadoo86
it does not even need a page refresh. I need an instance of HandlerManager
as event bus throughout the app. since it doesn't have a default
constructor I declared following in my module
{{{
private final HandlerManager eventBus = new HandlerManager(null);
}}}
and added method
{{{
@Provides HandlerManager getEventBus() { return eventBus; }
}}}
to my bitter disappointment I have a new instance of the bus every time it
is injected somewhere. suggestions are very welcome.
i would like to see toInstance() implemented too.. :(
besides that.. congrats for this big tool!
just a thought.. are you planing to implement some way to inject UIBinder
into the ui instead of what we are doing right now.. that is create the
uibinder interface each time for each widget trough the GWT.create()??
some way to inject that?
Thanks
Note that you can easily replace toInstance bindings with an analogous
provider method, i.e:
{{{
proteted configure() {
bind(Foo.class).toInstance(new Foo());
}}}
becomes:
{{{
@Provides
@Singleton
Foo provideFoo() {
return new Foo();
Assisted Inject is missing
I'm assuming Custom Injections are not supported in Gin?
http://code.google.com/p/google-guice/wiki/CustomInjections
A note on Guice Compatibility -
map class FactoryModuleBuilder to GinFactoryModuleBuilder