DDS-GmbH / jocument

JVM based template engine for DOCX and XLSX.
MIT License
3 stars 1 forks source link

Feature/postprocessing #16

Closed AntonOellerer closed 4 years ago

AntonOellerer commented 4 years ago

This PR introduces the postprocessing infrastructure

To be able to apply actions on finished documents (create a table of contents, ...) this postprocessing infrastructure was introduced. Its central supervisor class is PostProcessingAdministrator. An adminstrator keeps a list of all added postprocessors (implementing PostProcessor) and is passed to the template when document generation is started. Once the document generation is finished, the administrator is invoked and the document and the resolver are passed to it. The administrator then loops through all registered postprocessors and invokes them, passing them the resolver and the finished document.

A reference implementation (WordCount) was added to test the infrastructure and demonstrate its workflow.

AntonOellerer commented 4 years ago

@alexpartsch do you know what the part about the unmerged commit means in detail? Was this on purpose?