frjaeger220 / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Ensure TypeListener is itself injected prior to use #409

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If a TypeListener is used as an argument to requestInjection(), it should be 
injected before it is 
exercised. See the internal Initializable interface.

See this thread
http://groups.google.com/group/google-
guice/browse_thread/thread/80d32f87ba17bd6b/30ad7c576e72a130

Original issue reported on code.google.com by limpbizkit on 10 Aug 2009 at 7:48

GoogleCodeExporter commented 9 years ago
I tried to "enrich" the example from the custom injection page 
(https://code.google.com/p/google-guice/wiki/CustomInjections). In this example 
the logger instance gets the class into it has been injected as its category. I 
tried to create the logger category from the class name plus an "instance" 
name. This "instance" name gets injected into the TypeListener.

Is there a work-around?

Original comment by stefan.l...@gmail.com on 10 Apr 2014 at 2:03

GoogleCodeExporter commented 9 years ago
I ran into the exact same problem. Would be nice to see this resolved.

Original comment by alexan...@nyssen.org on 20 Jul 2014 at 9:27

GoogleCodeExporter commented 9 years ago
The code.google.com guice project has migrated to GitHub.  This issue site is 
no longer being used.  Please use https://github.com/google/guice/issues/409 
instead.

Original comment by sberlin on 20 Jul 2014 at 2:42