Open GoogleCodeExporter opened 9 years ago
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 google-guice@googlegroups.com or on
stackoverflow.com with the tag "guice".
Original comment by mccu...@gmail.com
on 11 Dec 2013 at 12:41
Original comment by mccu...@gmail.com
on 11 Dec 2013 at 12:42
Thank you for the information, it works as I needed. I shall make sure not to
raise issues and use the sources you have provided. Thanks
Original comment by devesh.m...@gmail.com
on 11 Dec 2013 at 12:51
Original issue reported on code.google.com by
devesh.m...@gmail.com
on 11 Dec 2013 at 8:48