Class AbstractPostProcessor
- java.lang.Object
-
- io.wcm.devops.conga.generator.plugins.postprocessor.AbstractPostProcessor
-
- All Implemented Interfaces:
FilePlugin<PostProcessorContext,List<FileContext>>
,Plugin
,PostProcessorPlugin
public abstract class AbstractPostProcessor extends Object implements PostProcessorPlugin
Shared functionality for post processor plugins.
-
-
Constructor Summary
Constructors Constructor Description AbstractPostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyFileHeader(FileContext file, FileHeaderContext fileHeader, PostProcessorContext postProcessorContext)
Apply file header to given file.protected FileHeaderContext
extractFileHeader(FileContext file, PostProcessorContext postProcessorContext)
Extract file header from given file.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.wcm.devops.conga.generator.spi.FilePlugin
accepts
-
Methods inherited from interface io.wcm.devops.conga.generator.spi.PostProcessorPlugin
apply, implicitApply
-
-
-
-
Method Detail
-
extractFileHeader
protected final FileHeaderContext extractFileHeader(FileContext file, PostProcessorContext postProcessorContext)
Extract file header from given file. File type is detected automatically.- Parameters:
file
- FilepostProcessorContext
- Post processor context- Returns:
- File header or null if none found
-
applyFileHeader
protected final void applyFileHeader(FileContext file, FileHeaderContext fileHeader, PostProcessorContext postProcessorContext)
Apply file header to given file. File type is detected automatically.- Parameters:
file
- FilefileHeader
- File headerpostProcessorContext
- Post processor context
-
-