Dears,
In the current javadoc (version 3.0rc2), I couldn't find any mention of the
fact that the FactoryModuleBuilder can accept to build several different types.
For instance, it's not clear that we can do the following:
public interface FruitFactory {
Apple createApple(Color color);
Orange createOrange(Acidity acidity);
Pear createPear(Color color);
}
I really had to test it myself in order to be sure... then I saw that it's
present in the wiki. However, I really think that this feature, not so easy for
those coming from Guice 2 (since Guice 2 had this restriction), should be
written down in the javadoc, not only in the wiki.
Original issue reported on code.google.com by ogregoire on 19 Jan 2011 at 2:35
Original issue reported on code.google.com by
ogregoire
on 19 Jan 2011 at 2:35