Class VelocityViewsRendererConfigurationProperties

java.lang.Object
io.micronaut.views.velocity.VelocityViewsRendererConfigurationProperties
All Implemented Interfaces:
io.micronaut.core.util.Toggleable, VelocityViewsRendererConfiguration

@ConfigurationProperties("micronaut.views.velocity") public class VelocityViewsRendererConfigurationProperties extends Object implements VelocityViewsRendererConfiguration
ConfigurationProperties implementation of VelocityViewsRendererConfiguration.
Since:
1.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • VelocityViewsRendererConfigurationProperties

      public VelocityViewsRendererConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Whether velocity views are enabled. Default value (true).
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
      Returns:
      boolean flag indicating whether VelocityViewsRenderer is enabled.
    • getDefaultExtension

      public String getDefaultExtension()
      The default extension to use for velocity templates. Default value ("vm").
      Specified by:
      getDefaultExtension in interface VelocityViewsRendererConfiguration
      Returns:
      Default extension for templates. By default "vm".
    • setEnabled

      public void setEnabled(boolean enabled)
      Whether velocity views are enabled.
      Parameters:
      enabled - True if they are
    • setDefaultExtension

      public void setDefaultExtension(String defaultExtension)
      Sets the default extension to use for velocity templates.
      Parameters:
      defaultExtension - The default extension