Package com.fizzed.rocker.processor
Class LoggingProcessor
- java.lang.Object
-
- com.fizzed.rocker.processor.LoggingProcessor
-
- All Implemented Interfaces:
TemplateModelPostProcessor
public class LoggingProcessor extends java.lang.Object implements TemplateModelPostProcessor
This post-processor does not modify the model, but simply does some logging. It is intended for testing purposes only.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description LoggingProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateModelprocess(TemplateModel templateModel, int ppIndex)Performs any post-processing on the givenTemplateModelas defined by the implementing class.
-
-
-
Method Detail
-
process
public TemplateModel process(TemplateModel templateModel, int ppIndex) throws PostProcessorException
Description copied from interface:TemplateModelPostProcessorPerforms any post-processing on the givenTemplateModelas defined by the implementing class. Only the returned instance shall be used further by the caller. Implementing classes may choose to return the provided instance, or create a completely new instance for further processing.- Specified by:
processin interfaceTemplateModelPostProcessor- Parameters:
templateModel- the original template model (which might have already been processed by previousTemplateModelPostProcessors.ppIndex- the index (starting from 0) of the post-processor as it appears in the list of given post-processor class names.- Returns:
- the resulting
TemplateModelwhich shall be used for further processing by following post-processors, or finally by theJavaGenerator. - Throws:
PostProcessorException- See Also:
TemplateModelPostProcessor.process(com.fizzed.rocker.model.TemplateModel, int)
-
-