Merge branch 'mmw/JAL-4199-web-services-testing' into mmw/bug/JAL-4241-annotation...
[jalview.git] / src / jalview / ws2 / actions / BaseJob.java
index 945c7b0..79c1aa8 100644 (file)
@@ -25,13 +25,14 @@ import jalview.ws2.api.WebServiceJobHandle;
  * 
  * @author mmwarowny
  */
+// TODO: make class non-abstract by removing isInputValid()
 public abstract class BaseJob implements JobI
 {
   protected final long internalId = MathUtils.getUID();
 
   protected final List<SequenceI> inputSeqs;
 
-  protected JobStatus status = null;
+  protected JobStatus status = JobStatus.CREATED;
 
   protected String log = "";
 
@@ -70,6 +71,7 @@ public abstract class BaseJob implements JobI
    * 
    * @return {@code true} if the input is valid.
    */
+  // FIXME: method not necessary, may incorporate into task#prepare()
   public abstract boolean isInputValid();
 
   /**
@@ -175,7 +177,7 @@ public abstract class BaseJob implements JobI
    * @param listener
    *          property change listener
    */
-  public final void addPropertyChagneListener(PropertyChangeListener listener)
+  public final void addPropertyChangeListener(PropertyChangeListener listener)
   {
     pcs.addPropertyChangeListener(listener);
   }