|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
DATA - supported transformable data type.public interface StagingContext<DATA>
Stage applying context.
Starting at a root,stages are applied and the returned continuation
is resolved until a terminal stage, the one that does not return a continuation that
could be further followed, is reached. With each stage the registered staging
context callback methods are invoked
before
and after
a stage is applied.
LinearStageRunner,
LinearStageProcessor,
TreeStageProcessor| Method Summary | |
|---|---|
void |
afterStage(Stage<DATA,?> stage,
DATA data)
Callback method invoked after each stage in the continuation of stages is applied. |
void |
beforeStage(Stage<DATA,?> stage,
DATA data)
Callback method invoked before each stage in the continuation of stages is applied. |
com.google.common.base.Optional<DATA> |
data()
Get the processed data in the actual state in the current processing context. |
com.google.common.base.Optional<Stage<DATA,?>> |
lastStage()
Get the last stage applied in the current staging context. |
| Method Detail |
|---|
void beforeStage(Stage<DATA,?> stage,
DATA data)
applied.
stage - the stage to be applied.data - the data to be transformed by the stage.
void afterStage(Stage<DATA,?> stage,
DATA data)
applied.
stage - the stage recently applied.data - the stage transformation result.com.google.common.base.Optional<Stage<DATA,?>> lastStage()
Optional.absent() in case no stage has been applied yet.
com.google.common.base.Optional<DATA> data()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||