cc (dunno how in google groups CC thread without post) On Monday, November 23, 2015 at 10:07:56 PM UTC+3, Kirill Merkushev wrote: > > 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/618b8444-32e4-415a-9799-b96ea8996ba7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
