Hi, I've been making an attempt to learn Guice, but these questions kept 
cropping up. Hopefully someone here can provide answers.


   - Does constructor injection use reflection all the time or is there an 
   option to switch to bytecode generation?
   - Is there a way to discard/shutdown the singletons? I saw 
Issue-62<http://code.google.com/p/google-guice/issues/detail?id=62>and this 
seems to have been open since 2007 !!
      - How do you shutdown a module and restart it - example, when it has 
      seen network/DB/JMS errors?
      - Can multiple Injector instances be created?
      - This would be useful for running multiple versions of the module in 
      parallel
      - Or at least for module-level testing, I felt the need for starting 
      the same module with different configurations
   - How do you guys make Guice work in JUnit?
      - I looked at various projects like Jukito, Guiceberry but they are 
      all way too complex, unnecessary and really do nothing to help
      - Again, it all comes down to being able to start/stop multiple/single 
      Injectors
      - Do you just use @Before anno in Junit to start the module once. But 
      how do you shut it down for the next test?
   - Why isn't there a way to get the Injector from the Guice class? After 
   creating the Injector, I had to store a reference to it in a singleton 
   class' static field
      - This singleton-for-the-Injector kind of defeated the purpose of the 
      whole thing. I was beginning to think that a simple Registry/Factory of 
my 
      own would've accomplished many of these things
      

Thanks,
Ashwin.

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-guice/-/Z91EearG0MIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to