public interface ContentHandler
extends sirius.kernel.di.std.Priorized
Generator
.
Handlers can be registered in the component model an will be called one after another until one feels
responsible to generate the effective output. The order of the handlers is defined by their
Priorized.getPriority()
(sorted ascending).
Each handler should check if either the handler type matches its own, or if the defined template has an appropriate file extension.
Modifier and Type | Method and Description |
---|---|
boolean |
generate(Generator generator,
OutputStream out)
Generates the appropriate output if the settings of the generator match.
|
boolean generate(Generator generator, OutputStream out) throws Exception
generator
- the generate settings given by the callerout
- the output stream used to write the generated content toException
- if an error occurs while generating contentCopyright © 2018. All rights reserved.