com.opensymphony.workflow.loader
Class AbstractWorkflowFactory
java.lang.Object
com.opensymphony.workflow.loader.AbstractWorkflowFactory
- All Implemented Interfaces:
- WorkflowFactory
- Direct Known Subclasses:
- HTTPWorkflowFactory, SpringHibernateWorkflowFactory, 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.opensymphony.workflow.loader.WorkflowFactory |
createWorkflow, getLayout, getName, getWorkflow, getWorkflowNames, isModifiable, removeWorkflow, renameWorkflow, save, saveWorkflow, setLayout |
properties
protected Properties properties
AbstractWorkflowFactory
public AbstractWorkflowFactory()
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.