Interface ContextCustomizer

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ContextCustomizer
    A callback interface to customize the Velocity Context before rendering a document.
    • Method Detail

      • customizeContext

        void customizeContext​(org.apache.velocity.context.Context context,
                              DocumentRenderingContext docRenderingContext,
                              SiteRenderingContext siteRenderingContext)
        Customize the Velocity context before rendering a document.
        Parameters:
        context - the Velocity context to customize.
        docRenderingContext - the document rendering context for the document being rendered.
        siteRenderingContext - the site rendering context for the site being rendered.