Class AbstractWorkflowFactory

java.lang.Object
com.opensymphony.workflow.loader.AbstractWorkflowFactory
All Implemented Interfaces:
WorkflowFactory
Direct Known Subclasses:
HTTPWorkflowFactory, URLWorkflowFactory, XMLWorkflowFactory

public abstract class AbstractWorkflowFactory extends Object implements WorkflowFactory
Abstract base class for all workflow factories. A workflow factory is a factory class that is able to provide workflow descriptors given a workflow name, as well as save descriptors.
Author:
Hani Suleiman Date: May 10, 2002 Time: 11:17:06 AM
  • Field Details

  • Constructor Details

    • AbstractWorkflowFactory

      public AbstractWorkflowFactory()
  • Method Details

    • getProperties

      public Properties getProperties()
      Get the configuration properties of this factory
      Specified by:
      getProperties in interface WorkflowFactory
    • init

      public final void init(Properties p)
      Specified by:
      init in interface WorkflowFactory
    • getWorkflow

      public WorkflowDescriptor getWorkflow(String name) throws FactoryException
      Get a workflow descriptor given a workflow name.
      Specified by:
      getWorkflow in interface WorkflowFactory
      Parameters:
      name - The name of the workflow to get.
      Returns:
      The descriptor for the specified workflow.
      Throws:
      FactoryException - if the specified workflow name does not exist or cannot be located.
    • initDone

      public void initDone() throws FactoryException
      Invoked after the properties of the factory have been set. Subclasses should override this method and add any specific setup code required. For example, connecting to an external resource or database.
      Specified by:
      initDone in interface WorkflowFactory
      Throws:
      FactoryException - if there was an error during initialization.