I've described only builder, but the question is about any describable (customized too). Thanks for the quick answers!
It really sorry that i cant do it. It can simplify unit-testing a lot. понедельник, 23 ноября 2015 г., 22:07:56 UTC+3 пользователь Kirill Merkushev написал: > > Hello! > > I want to replace all static interactions in my plugin with DI. > > But when i use @Inject annotation on @Extension class - all works > perfectly, but with any kind of Describable (which should be created same > as any extension i think) it doesn't work. > > I have an example https://gist.github.com/lanwen/553b51c9d2227eaad435 > > The main idea - that a want injected instance in perform method, but it > only injected when i do > Jenkins.getInstance().getInjector().injectMembers(this); > > Can somebody help to clarify why this doesn't injected automatically? > > Thanks! > -- 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/2658a024-8b68-4d69-88c1-a23e1c6cab3f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
