Package org.argoprint.persistence

This package contains the persistence API for ArgoPrint.

See:
          Description

Interface Summary
PostProcessor This interface is used to process an output file after the file has been generated.
TemplateEngine This interface serves as an adapter for templating engines.
 

Class Summary
NullPostProcessor This class is used to insure that no post processing is performed on selected file types.
OpenOfficePostProcessor This class is responsible for packaging the temporary output file into a zip file.
PostProcessorFactory This factory creates instances of PostProcessors which take a raw XML file and perform additional processing on the file prior to output.
TemplateEngineFactory This class is responsible for instantiating instances of templating engines.
TemplateMetaFile This class represents the metadata for a template file.
TemplateMetaFileSerializer This class is used to serialize (read/write) TemplateMetaFile objects.
 

Exception Summary
PostProcessorNotFoundException This exception is thrown whenever a PostProcessor cannot be found for a given file extension.
TemplateEngineException This class is used to identify exceptions caused by the template engine.
TemplateEngineNotFoundException This exception is thrown whenever we're unable to find an appropriate TemplateEngine.
 

Package org.argoprint.persistence Description

This package contains the persistence API for ArgoPrint. The TemplateEngine provides a pluggable mechanism for supporting different types of templating engines. The TemplateEngineFactory uses the Java SPI mechanism to "discover" all implementations of the TemplateEngine interface, and serves as a registry for template engines. TemplateEngine implementations are selectable (@see TemplateEngineFactory#getInstance based on the file extension of the template. The PostProcessor provides a pluggable mechanism for supporting different types of post-templating operations. For example, if the user selects an Open Office template the PostProcessor will handle re-zipping the file.