Just write some CGLIB to sub-class everything that has a single  
constructor without the @Inject, override the constructor and add the  
annotation. What like maybe 10 lines of code or so?  ;)

-bp


On Oct 14, 2008, at 7:30 PM, Gili Tzabari wrote:

>
>
>    I am more worried about integration with 3rd-party
> libraries/frameworks than anything else. I agree that @Inject is  
> easy to
> add, but that requires you to have control over the source-code  
> which is
> not always the case. I will feel much better once I see what is rolled
> out to address this use-case. I broke my teeth a bit trying to  
> integrate
> Guice into JAX-RS :) There were a bunch of classes that Guice could
> easily inject, but it is technically impossible for me to annotate  
> them
> with @Inject because I don't control the code and that same code also
> has to work with Spring and other IoC frameworks.
>
> Gili
>
> Brian Pontarelli wrote:
>>>   Sorry to beat a dead horse :) I'm also surprised that no one else
>>> in
>>> the community has an opinion (either way) on this matter...?
>>>
>>
>> 7 characters, 3 keystrokes in most IDEs via a template, no compile or
>> runtime requirements, extra information for reflection, I don't see
>> the problem really. I mean it's just "gi<tab>" and your done
>> (gi="Guice Inject" for those wondering,
>> emsm="EasyMock.createStrictMock" in my world). :)
>>
>> -bp
>>
>>
>>>
>>
>>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
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