Sam,
Thanks for your response. It arrived when I was on vacation, so I
apologize for this late reply.
The approach I've taken is to just write out the Factory boilerplate:
class BarFactoryImpl implements BarFactory {
public <T> Bar<T> create(Foo<T> f) {
return new BarImpl<T>(f);
}
}
which then works with the simple binding
bind(BarFactory.class).to(BarFactoryImpl.class);
Regards,
Chris
On Oct 4, 8:54 am, Sam Berlin <
sber...@gmail.com> wrote:
> See issue 218 <
http://code.google.com/p/google-guice/issues/detail?id=218>.
> >
google-guice...@googlegroups.com<google-guice%2Bunsubscribe@google
groups.com>
> > .