public interface Processor
| Modifier and Type | Method and Description |
|---|---|
com.google.inject.Key<?> |
establishes()
The stage this processor establishes if operation successfully finishes.
|
com.google.common.collect.ImmutableList<com.google.inject.Key<?>> |
requires()
The list of stages this processor needs for its operations.
|
boolean |
run(Model model)
Runs this processor.
|
com.google.common.collect.ImmutableList<com.google.inject.Key<?>> requires()
Model. A stage may or may not be associated with actual data of the type of the
parameter of the key.com.google.inject.Key<?> establishes()
boolean run(Model model)
requires() stages are
established before this method is called via Model.establishStage(Key). The method
should return true if processing successfully finished and the given establishes() key
has been attached to the model. Any errors, warnings, and hints during processing should be
attached to the model via Model.getDiagCollector().