public class Merger extends java.lang.Object implements Processor
Merged stage, in which service config
and IDL are combined and validated.
The merger also derives interpreted values from the configuration, for example, the
HttpConfigAspect,
and reports consistency errors encountered during interpretation.
| Constructor and Description |
|---|
Merger() |
| 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.
|
public com.google.common.collect.ImmutableList<com.google.inject.Key<?>> requires()
ProcessorModel. A stage may or may not be associated with actual data of the type of the
parameter of the key.public com.google.inject.Key<?> establishes()
Processorestablishes in interface Processorpublic boolean run(Model model)
ProcessorProcessor.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 Processor.establishes() key
has been attached to the model. Any errors, warnings, and hints during processing should be
attached to the model via Model.getDiagCollector().