Re: @Inject'ing Generic Services

2009-03-04 Thread Luther Baker
Explicit discussion about generics and ioc eludes me on that page - but I'll keep looking around. Thanks. -Luther On Wed, Mar 4, 2009 at 7:01 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Wed, 04 Mar 2009 21:47:31 -0300, Luther Baker > escreveu: > > Can I safely @Injec

Re: @Inject'ing Generic Services

2009-03-04 Thread Thiago H. de Paula Figueiredo
Em Wed, 04 Mar 2009 21:47:31 -0300, Luther Baker escreveu: Can I safely @Inject this encoder into multiple/different pages? class MoviePage { @Inject private ValueEncoder encoder; Java does not let you do that because of the way it implemented generics. Anyway, Select (and maybe s

@Inject'ing Generic Services

2009-03-04 Thread Luther Baker
The following is illegal Java ... so I cannot bind the following in my AppModule: binder.bind(ValueEncoder.class, GenericValueEncoder.class); binder.bind(ValueEncoder.class, GenericValueEncoder.class); binder.bind(ValueEncoder.class, GenericValueEncoder.class); bind