com.opensymphony.workflow.loader
Class WorkflowLoader
java.lang.Object
|
+--com.opensymphony.workflow.loader.WorkflowLoader
- public class WorkflowLoader
- extends java.lang.Object
The WorkflowLoader is responsible for creating a WorkflowDesciptor
by loading the XML from various sources.
- Version:
- $Revision: 1.9 $
- Author:
- Patrick Lightbody
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkflowLoader
public WorkflowLoader()
load
public static WorkflowDescriptor load(java.net.URL url)
throws org.xml.sax.SAXException,
java.io.IOException
- Load a workflow descriptor from a URL
- Parameters:
url
- The URL of an XML document representing the workflow
load
public static WorkflowDescriptor load(java.lang.String resource)
throws org.xml.sax.SAXException,
java.io.IOException
- Load a workflow descriptor from a resource
- Parameters:
resource
- The path of an XML resource representing the workflow
load
public static WorkflowDescriptor load(java.io.File file)
throws org.xml.sax.SAXException,
java.io.IOException
- Load a workflow descriptor from a file on disk
- Parameters:
file
- The XML file representing the workflow
load
public static WorkflowDescriptor load(java.io.InputStream is)
throws org.xml.sax.SAXException,
java.io.IOException
- Load a workflow descriptor from an InputStream