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/704cc22d-90f2-4f78-bd13-24afa1fabece%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to