Exemplo n.º 1
0
 /** Called when the user saves the project configuration. */
 @Override
 public Publisher newInstance(StaplerRequest req, JSONObject formData) throws FormException {
   PlotPublisher publisher = new PlotPublisher();
   for (Object data : SeriesFactory.getArray(formData.get("plots"))) {
     publisher.addPlot(bindPlot((JSONObject) data, req));
   }
   return publisher;
 }