Re: Return Singleton Queue in guice

2015-12-29 Thread 'Dirk Olmes' via google-guice
On 12/25/2015 07:51 PM, Sneh Tekriwal wrote: > > > > > I am using Google Guice for dependency injection and I require a singleton > Queue. > > Here is the code to return the queue. > > > bind( > new

Re: Injection of context in a @Provides method ?

2014-03-12 Thread Dirk Olmes
On 03/10/2014 09:27 PM, Nate Bauernfeind wrote: No actually you don't get already bound exceptions. Guice actually treats the injection as a setter based injection (it doesn't care how you name methods; but I tend to use the word register since it seems to suggest

Re: Injection of context in a @Provides method ?

2014-03-10 Thread Dirk Olmes
On 03/10/2014 09:27 PM, Nate Bauernfeind wrote: No actually you don't get already bound exceptions. Guice actually treats the injection as a setter based injection (it doesn't care how you name methods; but I tend to use the word register since it seems to suggest not saving the object).

Re: Information about Bindings at runtime

2009-02-04 Thread Dirk Olmes
On Feb 2, 7:57 pm, Michael Wölm m...@m-woelm.de wrote: Hi Group, for my study project, I use Guice to apply Dependency Injection in a component-oriented system. For example, I have following binding set in the module: bind(IModule.class).to(Implementation.class); Ok, now there are these