Package org.copperengine.core
Interface WorkflowFactory<D>
-
- Type Parameters:
D
- type of data passed in to the workflow on creation.
public interface WorkflowFactory<D>
Factory for workflow instances. A WorkflowFactory is requested a the corresponding engine.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Workflow<D>
newInstance()
-
-
-
Method Detail
-
newInstance
Workflow<D> newInstance() throws java.lang.InstantiationException, java.lang.IllegalAccessException
- Returns:
- new instance of the workflow
- Throws:
java.lang.InstantiationException
-Class.newInstance()
"if this Class represents an abstract class, an interface, an array class, a primitive type, or void; or if the class has no nullary constructor; or if the instantiation fails for some other reason."java.lang.IllegalAccessException
-Class.newInstance()
"if the class or its nullary constructor is not accessible."
-
-