-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inject the InjectionPoint #27
Comments
From kevinb9n on February 28, 2007 11:09:37
|
From kevinb9n on March 08, 2007 13:55:34 (No comment was entered for this change.) Labels: 1.1 |
From kevinb9n on March 12, 2007 18:11:38 Let's design this thing. First, I think the name Injectee has just gotta go. interface InjectionPoint { ? For parameter injections, getAllAnnotations() would be a union of those on the Of course... I could ask to have the BindingAnnotation injected directly which could |
From dhanji on March 20, 2007 21:15:50 this would be really useful to me, is it in any of the builds/branches so far? |
From arikkfir on April 03, 2007 18:16:34 +10! |
From kevinb9n on June 03, 2007 11:29:52 Previously I described offering access to: * the field, method or constructor being injected I've now reconsidered the need for this feature (once issue 49 is completed). I don't think we want to allow injection behavior to be dependent on whether it's a What makes sense is to be able to provide differently based on the value of that So at present I am planning to close this issue unless we can hear some really Owner: kevinb9n |
From peter.kitt.reilly on June 04, 2007 15:49:15 Would Issue 49 allow binding of Loggers in the |
From crazyboblee on June 04, 2007 15:52:57 No, in the case of Logger, there's only one actual binding. All you need is the |
From kevinb9n on June 04, 2007 16:19:07 The Logger thing works because of internal tricks that Guice does, and this will class MyClass { |
From crazyboblee on June 04, 2007 16:23:15 How is the declaring class any different from the binding annotation's attributes |
From kevinb9n on June 04, 2007 16:32:56 This discussion should be happening over in issue 49 , not here (this is the issue I The binding annotation's attributes become part of the Key, and so they get scoped |
From crazyboblee on June 04, 2007 16:37:54 OK. I still need to catch up. |
From peter.kitt.reilly on June 05, 2007 02:48:11 #9 is nearly as bad as the boilerplate it is replacing. Seam provides a Logger that solves all three (at the cost of using |
From bslesinsky on July 07, 2007 16:57:43 I'm somewhat concerned that giving the provider access to the It seems like having a clear rule that injection is based solely on annotations and |
From jdpatterson on October 09, 2007 08:15:24 I agree with the above comment, that the Key used to select the provider should be sufficient for most purposes. |
From dh.evolutionnext on May 20, 2008 10:34:04 I disagree with that this has anything to do directly with Issue 49 . I also My use case is that I need to create a Scope based on what Swing Component is I do like what Issue 49 is getting at, if I read and understood right. I really (* = not required now, but looks though as if things like closures and various other As per the name "injectee", other names that could be used "source", "destination", |
From limpbizkit on May 30, 2008 00:18:41 Deprioritizing. This is an interesting feature but it seems to encourage fragile code. It's rare that a method needs Summary: Provide "injectee" to custom providers. |
From limpbizkit on May 30, 2008 00:24:39 (No comment was entered for this change.) Summary: Inject the InjectionPoint |
From kobevaliant on November 24, 2008 01:59:13 This is cool! |
From jose.illescas on February 09, 2009 10:48:50 See patch on https://code.google.com/p/google-guice/issues/detail?id=258 note: runtime injection across custom provider |
From sberlin on April 25, 2010 15:06:05 Issue 440 has been merged into this issue. |
From kevinb9n on April 25, 2010 15:09:55 I continue to believe this feature would be a bad idea. It's simply backwards. It will become even harder to |
From ogregoire on April 26, 2010 02:28:06 I understand people may have some reluctance, but I think that Guice has clearly This functionality would clearly be designed for SPI, so used by people who are |
From sberlin on May 02, 2010 05:32:28 Issue 412 has been merged into this issue. |
From sberlin on February 19, 2011 12:23:12 It's been 4 years since the issue was opened, Guice has seen wide use, and the general consensus thus far has been to purposely not expose this feature. It makes debugging even harder than it already is (which is the #1 pain point with Guice). Status: WontFix |
From crazyboblee on February 25, 2007 17:38:40
So they know who they're creating an instance for.
Original issue: http://code.google.com/p/google-guice/issues/detail?id=27
The text was updated successfully, but these errors were encountered: