Class FreeMarkerProcessor

  • All Implemented Interfaces:
    org.alfresco.processor.Processor, TemplateProcessor, TemplateValueConverter

    public class FreeMarkerProcessor
    extends BaseProcessor
    implements TemplateProcessor, TemplateValueConverter
    FreeMarker implementation of the template processor interface.

    Service to process FreeMarker template files loaded from various sources including the classpath, repository and directly from a String.

    The template is processed against a data model generally consisting of a map of named objects. FreeMarker can natively handle any POJO objects using standard bean notation syntax. It has support for walking List objects. A 'standard' data model helper is provided to help generate an object model containing well known objects such as the Company Home, User Home and current User nodes. It also provides helpful util classes to process Date objects and repository specific custom methods.

    Author:
    Kevin Roast
    • Constructor Detail

      • FreeMarkerProcessor

        public FreeMarkerProcessor()