|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasteps.ProcessManager
public class ProcessManager
The ProcessManager class is used to hold all the registered processes. This class is a singleton
| Method Summary | |
|---|---|
static ProcessManager |
getInstance()
Get the singleton instance |
Process |
getProcess(String name)
Get a registered process by name |
void |
registerExceptionHandler(StepAction handler)
Registers a global exception handler. |
Process |
registerProcess(InputStream processFile)
Register a new process by specifing the process definition file as an InputStream |
Process |
registerProcess(String processFileResName)
Register a new process by specifing the process definition file as a String representing a resource name available to the class loader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ProcessManager getInstance()
public Process getProcess(String name)
throws ProcessNotFoundException
name - The process name
ProcessNotFoundException - throws if a process is not found by the specified name
public Process registerProcess(InputStream processFile)
throws ProcessParsingException
processFile - InputStream to the process definition XML file
ProcessParsingException - Thrown on parsing exceptions
public Process registerProcess(String processFileResName)
throws ProcessParsingException
processFileResName - A String representing the process definition file resource
ProcessParsingException - Thrown on parsing exceptionspublic void registerExceptionHandler(StepAction handler)
handler - The exception handler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||