IN
- input type for that processorOUT
- output type for that processorpublic interface Processor<IN extends MessageProvider,OUT extends MessageProvider>
Note that it is required that both inputs and outputs implement MessageProvider
: this allows a processor to grab a context-dependent
message to include into the report should the need arise. A ProcessingReport
is passed as an argument so that the processor can add
debug/info/warning/error messages.
Ideally, processors should not throw unchecked exceptions.
Modifier and Type | Method and Description |
---|---|
OUT |
process(ProcessingReport report,
IN input)
Process the input
|
OUT process(ProcessingReport report, IN input) throws ProcessingException
report
- the report to use while processinginput
- the input for this processorProcessingException
- processing failed