1 17 18 19 20 package org.apache.lenya.cms.task; 21 22 import org.apache.avalon.framework.parameters.ParameterException; 23 import org.apache.avalon.framework.parameters.Parameters; 24 25 26 public abstract class AbstractTask implements Task { 27 private Parameters parameters = new Parameters(); 28 29 34 public Parameters getParameters() { 35 Parameters params = new Parameters(); 36 params = params.merge(parameters); 37 38 return params; 39 } 40 41 48 public void parameterize(Parameters parameters) throws ParameterException { 49 this.parameters = this.parameters.merge(parameters); 50 } 51 52 57 public void setLabel(String label) { 58 } 59 60 private int result = SUCCESS; 61 62 65 public int getResult() { 66 return result; 67 } 68 69 73 protected void setResult(int result) { 74 this.result = result; 75 } 76 } 77 | Popular Tags |