mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 13:02:19 +00:00
exposing major singletons to IoC
This commit is contained in:
1 parent
a77011e09e
commit
f19678d083
1 file changed
+8
@@ -262,6 +262,14 @@ public abstract class ExtensionFinder implements ExtensionPoint {
|
||||
sezpozIndex = loadSezpozIndices(Jenkins.getInstance().getPluginManager().uberClassLoader);
|
||||
|
||||
List<Module> modules = new ArrayList<Module>();
|
||||
modules.add(new AbstractModule() {
|
||||
@Override
|
||||
protected void configure() {
|
||||
Jenkins j = Jenkins.getInstance();
|
||||
bind(Jenkins.class).toInstance(j);
|
||||
bind(PluginManager.class).toInstance(j.getPluginManager());
|
||||
}
|
||||
});
|
||||
modules.add(new SezpozModule(sezpozIndex));
|
||||
|
||||
for (ExtensionComponent<Module> ec : moduleFinder.find(Module.class, Hudson.getInstance())) {
|
||||
|
||||
Reference in new issue
Block a user