示例#1
0
 public void setPlugin(Plugin plugin) {
   Jenkins.lookup(PluginInstanceStore.class).store.put(this, plugin);
   plugin.wrapper = this;
 }
示例#2
0
 /** 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;
 }