All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zeroturnaround.jenkins.updateModes.UpdateMode Maven / Gradle / Ivy

Go to download

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 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