public interface ContentHandler extends sirius.kernel.di.std.Priorized
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|
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 caller
out- the output stream used to write the generated content to
Exception- if an error occurs while generating content
Copyright © 2018. All rights reserved.