Package com.opensymphony.workflow.loader
Class AbstractWorkflowFactory
java.lang.Object
com.opensymphony.workflow.loader.AbstractWorkflowFactory
- All Implemented Interfaces:
WorkflowFactory
- Direct Known Subclasses:
HTTPWorkflowFactory,URLWorkflowFactory,XMLWorkflowFactory
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the configuration properties of this factorygetWorkflow(String name) Get a workflow descriptor given a workflow name.final voidinit(Properties p) voidinitDone()Invoked after the properties of the factory have been set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.opensymphony.workflow.loader.WorkflowFactory
createWorkflow, getLayout, getName, getWorkflow, getWorkflowNames, isModifiable, removeWorkflow, renameWorkflow, save, saveWorkflow, setLayout
-
Field Details
-
properties
-
-
Constructor Details
-
AbstractWorkflowFactory
public AbstractWorkflowFactory()
-
-
Method Details
-
getProperties
Get the configuration properties of this factory- Specified by:
getPropertiesin interfaceWorkflowFactory
-
init
- Specified by:
initin interfaceWorkflowFactory
-
getWorkflow
Get a workflow descriptor given a workflow name.- Specified by:
getWorkflowin interfaceWorkflowFactory- 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
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:
initDonein interfaceWorkflowFactory- Throws:
FactoryException- if there was an error during initialization.
-