hooking up the dynamic loading logic into the UI

This commit is contained in:
Kohsuke Kawaguchi committed 2011-11-15 23:09:47 -08:00
1 parent f4474cc865
commit c6d81ef2e2
9 files changed
+199 -24

No files matched your search

@@ -25,6 +25,7 @@
package hudson;
import hudson.PluginManager.PluginInstanceStore;
import jenkins.YesNoMaybe;
import jenkins.model.Jenkins;
import hudson.model.UpdateCenter;
import hudson.model.UpdateSite;
@@ -290,6 +291,15 @@ public class PluginWrapper implements Comparable<PluginWrapper> {
return shortName;
}
/**
* Does this plugin supports dynamic loading?
*/
public YesNoMaybe supportsDynamicLoad() {
String v = manifest.getMainAttributes().getValue("Support-Dynamic-Loading");
if (v==null) return YesNoMaybe.MAYBE;
return Boolean.parseBoolean(v) ? YesNoMaybe.YES : YesNoMaybe.NO;
}
/**
* Returns the version number of this plugin
*/