Comment #1 on issue 790 by [email protected]: Binding assisted inject
factory to a named annotation
http://code.google.com/p/google-guice/issues/detail?id=790
Use the "build(Key<F> factoryInterface)" method to bind the factory with a
binding annotation:
Module factoryModuleBuilder = new FactoryModuleBuilder()
.implement(MyInterface.class, MyInterfaceTest.class)
.build(Key.get(MyFactory.class, Names.named("MyFactoryTest")));
install(factoryModuleBuilder);
PS. you can ask questions on [email protected] or on
stackoverflow.com with the tag "guice".
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/groups/opt_out.