public void setPlugin(Plugin plugin) { Jenkins.lookup(PluginInstanceStore.class).store.put(this, plugin); plugin.wrapper = this; }
/** Gets the instance of {@link Plugin} contributed by this plugin. */ public @CheckForNull Plugin getPlugin() { PluginInstanceStore pis = Jenkins.lookup(PluginInstanceStore.class); return pis != null ? pis.store.get(this) : null; }