Status: New
Owner: ----
New issue 530 by Leigh.Klotz: Add FactoryModuleBuilder.getProvider to
support Command Pattern use case
http://code.google.com/p/google-guice/issues/detail?id=530
With FactoryProvider you can do this:
mapbinder.addBinding("banana").
toProvider(FactoryProvider.newFactory(FruitFactory.class,
Banana.class));
With FactoryModuleBuilder, you cannot get the provider.
In The discussion here, Sam Berlin suggests adding
FactoryModuleBuilder.getProvider, but also suggests a workaround using
nonce annotations.
http://groups.google.com/group/google-guice/browse_thread/thread/7f51af1f3860205d
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.