public interface PipelineStep
Modifier and Type | Method and Description |
---|---|
void |
addToPipeline(PipelineContext pipeline)
Wire step into the pipeline.
|
default void |
close()
Close the step.
|
default void |
init()
Initialize the step.
|
void addToPipeline(PipelineContext pipeline)
PipelineContext.addStep(com.chemaxon.overlap.cli.util.pipeline.PipelineStep)
init()
.init()
.PipelineContext
reference this method is side effect freepipeline
- Target pipeline.default void init() throws Exception
addToPipeline(com.chemaxon.overlap.cli.util.pipeline.PipelineContext)
will be invoked before
this method.close()
is expected to be invoked sometimes later, regardless of possible error(s) thrown.Exception
- In case of initialization failuredefault void close() throws Exception
init()
is guaranteed to
be invoked before. Note that it is possible that init()
and close()
methods are not invoked
during the life cycle of an implementing instance.Exception
- might be propagated from underlying IO