public interface JavaTaskInitializable
Java interface provides some new methods invoked before and after
the standard execute(..) method of a Java task.
When your customized JavaTask implements this interface:
setUp(DataCollection) is invoked before each JavaTask.execute(DataCollection) invocationtearDown(DataCollection) is invoked after each JavaTask.execute(DataCollection) invocationNote
You cannot extend your Java task with this JavaTaskInitializable interface when it already extends the JavaTaskIterator interface.
JavaTask,
DataCollection| Modifier and Type | Method and Description |
|---|---|
void |
setUp(DataCollection collection)
|
void |
tearDown(DataCollection collection)
Invoked after each
JavaTask.execute(DataCollection) invocation.Note that, it is not applicable when your JavaTask implements the JavaTaskIterator. |
void setUp(DataCollection collection) throws ExecException
JavaTask.execute(DataCollection) invocation.Note
This is not applicable when your Java task implements the JavaTaskIterator interface.
collection - The data collection that contains the parameters that will be passed to the JavaTask.execute(DataCollection)ExecException - is thrown when your conditions of setup are not correctvoid tearDown(DataCollection collection) throws ExecException
JavaTask.execute(DataCollection) invocation.JavaTask implements the JavaTaskIterator.collection - The DataCollection contains the parameters passed to the JavaTask.execute(DataCollection)ExecException - is thrown when your conditions of end are not correct