Package com.highdeal.iec.action
Interface JavaTaskInitializable
public interface JavaTaskInitializable
This
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:
- the method
setUp(DataCollection)is invoked before eachJavaTask.execute(DataCollection)invocation - the method
tearDown(DataCollection)is invoked after eachJavaTask.execute(DataCollection)invocation
Note
You cannot extend your Java task with this JavaTaskInitializable interface when it already extends the JavaTaskIterator interface.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp(DataCollection collection) Invoked before eachJavaTask.execute(DataCollection)invocation.
voidtearDown(DataCollection collection) Invoked after eachJavaTask.execute(DataCollection)invocation.
Note that, it is not applicable when yourJavaTaskimplements theJavaTaskIterator.
-
Method Details
-
setUp
Invoked before eachJavaTask.execute(DataCollection)invocation.
Note
This is not applicable when your
Java taskimplements theJavaTaskIteratorinterface.- Parameters:
collection- Thedata collectionthat contains the parameters that will be passed to theJavaTask.execute(DataCollection)- Throws:
ExecException- is thrown when your conditions of setup are not correct
-
tearDown
Invoked after eachJavaTask.execute(DataCollection)invocation.
Note that, it is not applicable when yourJavaTaskimplements theJavaTaskIterator.- Parameters:
collection- TheDataCollectioncontains the parameters passed to theJavaTask.execute(DataCollection)- Throws:
ExecException- is thrown when your conditions of end are not correct
-