Which dependencies do you mean? Normally there is no need to use dependency 
injection in Jenkins at all. Typically all required objects are provided as 
parameters to the extension point methods. 

Maybe a pointer to the code would be helpful...

> Am 30.06.2021 um 09:31 schrieb Goyot, Martin <[email protected]>:
> 
> Hi Jesse and Tim,
> 
> Thanks for the feedback. Let's say I remove my use of Guice, am I left with 
> something else to deal with dependency injection ?  Is there a Jenkins way of 
> dealing with this, a particular pattern advised, or should I rebuild the 
> dependencies myself where needed ? I'm interested in any pointer to deal with 
> this injection.
> 
> Thanks in advance,
> Martin
> --
> 
> 
> Le mar. 29 juin 2021 à 17:14, Tim Jacomb <[email protected] 
> <mailto:[email protected]>> a écrit :
> The guice integration within Jenkins isn't great, the general consensus from 
> people who have experienced issues with it is don't use it.
> And as soon as you hit it an issue with it rip it out if you come across it 
> somewhere 
> 
> On Tue, 29 Jun 2021 at 15:10, Jesse Glick <[email protected] 
> <mailto:[email protected]>> wrote:
> Guice should never have been added to Jenkins to begin with and I would not 
> recommend using it from a plugin.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr20Sjbdqq4JEcadn8L9gYyxSOAw%3DkmO7D8Q4_1Ve-cn%3DQ%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr20Sjbdqq4JEcadn8L9gYyxSOAw%3DkmO7D8Q4_1Ve-cn%3DQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/CAH-3BieWpaYGqF1R4V19H1QHVFjLe8bK0_xvo1FkfuTHWbRMnQ%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/CAH-3BieWpaYGqF1R4V19H1QHVFjLe8bK0_xvo1FkfuTHWbRMnQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/CA%2Bb6JB9pTyuOctbUVgaNED_tkY75Qi6QYzwG_ieOrjvLdW_sKw%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/CA%2Bb6JB9pTyuOctbUVgaNED_tkY75Qi6QYzwG_ieOrjvLdW_sKw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/60B1F0AC-856B-43D6-A8B8-ABD36C6881D7%40gmail.com.

Reply via email to