Expose Injector to the rest of the world

This commit is contained in:
Kohsuke Kawaguchi committed 2011-11-15 17:31:49 -08:00
1 parent 09ef861c98
commit 82ef72c00d
3 files changed
+133 -3

No files matched your search

@@ -282,8 +282,6 @@ public abstract class PluginManager extends AbstractModelObject {
Jenkins.getInstance().lookup.set(PluginInstanceStore.class,new PluginInstanceStore());
TaskGraphBuilder g = new TaskGraphBuilder();
Jenkins.getInstance().lookup.set(Injector.class,Guice.createInjector());
// schedule execution of loading plugins
for (final PluginWrapper p : activePlugins.toArray(new PluginWrapper[activePlugins.size()])) {
g.followedBy().notFatal().attains(PLUGINS_PREPARED).add("Loading plugin " + p.getShortName(), new Executable() {