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

Constructor Summary
WorkflowLoader()
           
 
Method Summary
static WorkflowDescriptor load(java.io.File file)
          Load a workflow descriptor from a file on disk
static WorkflowDescriptor load(java.io.InputStream is)
          Load a workflow descriptor from an InputStream
static WorkflowDescriptor load(java.lang.String resource)
          Load a workflow descriptor from a resource
static WorkflowDescriptor load(java.net.URL url)
          Load a workflow descriptor from a URL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowLoader

public WorkflowLoader()
Method Detail

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

See www.opensymphony.com for more information.