Hi,
Just tried to use DI in Jenkins in a particular case that didn't work. Just
wanted to check if this was supposed to be a supported use case and get
feedback.
It's a multimodules project:
* xyz-jenkins-plugin
* library
*xyz-jenkins-plugin* depends on *library*.
In library there're two classes:
* SomeFacade (interface)
* SomeFacadeImpl (impl class, annotated @Extension)
In *xyz-jenkins-plugin* in a Jenkins/Sezpoz managed class, I put
public class ... {
@Inject
SomeFacade someFacade;
}
But this crashes when Jenkins starts:
1) No implementation for ...SomeFacade was bound.
while locating ..SomeFacade
for field at ...SomeUI.someFacade(Unknown Source)
Is this expected? Maybe the scanning doesn't include dependent jars?
Thanks
--
Baptiste
--
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/CANWgJS7gKvaNScrcT3jB_bybdL2zRzrtmZu10rAxHh4yikRVMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.