Interface ViewRendererConfigurationModifier


public interface ViewRendererConfigurationModifier
Dropwizard views configuration modifier. The main purpose is to provide default values for exact template engine (for example, application may configure default common templates for freemarker).

View configuration is global and so only one server pages application could actually declare it (usually bind from main configuration object). This modifier could be used in all server pages applications applying required changes to the global configuration.

Each modifier is registered for exact renderer and so don't have to deal with map of maps (global configuration).

Since:
06.12.2018
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This map is automatically created if global configuration object did not contain it yet.
  • Method Details

    • modify

      void modify(Map<String,String> config)
      This map is automatically created if global configuration object did not contain it yet. All modifiers targeted the same renderer will receive the same map. Modifiers execution order is not predefined.
      Parameters:
      config - configuration map for exact renderer
      See Also: