1 5 package com.opensymphony.workflow.loader; 6 7 import com.opensymphony.workflow.FactoryException; 8 9 import java.util.Properties ; 10 11 12 22 public abstract class AbstractWorkflowFactory { 23 25 protected Properties properties = new Properties (); 26 27 29 32 public Properties getProperties() { 33 return properties; 34 } 35 36 public final void init(Properties p) { 37 this.properties = p; 38 } 39 40 46 public abstract WorkflowDescriptor getWorkflow(String name) throws FactoryException; 47 48 53 public abstract String [] getWorkflowNames() throws FactoryException; 54 55 public abstract boolean removeWorkflow(String name) throws FactoryException; 56 57 66 public abstract boolean saveWorkflow(String name, WorkflowDescriptor descriptor, boolean replace) throws FactoryException; 67 68 75 public void initDone() throws FactoryException { 76 } 77 } 78 | Popular Tags |