
org.zeroturnaround.jenkins.updateModes.UpdateMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liverebel-deploy Show documentation
Show all versions of liverebel-deploy Show documentation
LiveRebel Plugin helps to run updates to your JEE containers faster. LiveRebel is a tool for hot updates without downtime,
lost sessions and OutOfMemoryErrors. You have to have a running LiveRebel Command Center to use this plugin.
The newest version!
package org.zeroturnaround.jenkins.updateModes;
import hudson.model.Describable;
import hudson.model.Descriptor;
import hudson.model.Hudson;
public class UpdateMode implements Describable {
public Descriptor getDescriptor() {
return Hudson.getInstance().getDescriptor(getClass());
}
public static class UpdateModeDescriptor extends Descriptor {
public UpdateModeDescriptor(Class extends UpdateMode> clazz) {
super(clazz);
}
public String getDisplayName() {
try {
return clazz.newInstance().toString();
} catch (InstantiationException ignored) {}
catch (IllegalAccessException ignored) {}
return clazz.getSimpleName(); //fallback to class name
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy