Class ViewsConfigurationProperties

java.lang.Object
io.micronaut.views.ViewsConfigurationProperties
All Implemented Interfaces:
io.micronaut.core.util.Toggleable, ViewsConfiguration

@ConfigurationProperties("micronaut.views") public class ViewsConfigurationProperties extends Object implements ViewsConfiguration
Implementation of ViewsConfiguration. Views configuration properties.
Since:
1.0
Author:
Sergio del Amo, graemerocher
  • Field Details

  • Constructor Details

    • ViewsConfigurationProperties

      public ViewsConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      enabled getter.
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
      Returns:
      boolean flag indicating whether the security features are enabled.
    • getFolder

      public String getFolder()
      Specified by:
      getFolder in interface ViewsConfiguration
      Returns:
      The resources' folder where views should be searched for. By default "views"
    • setEnabled

      public void setEnabled(boolean enabled)
      Whether view rendering is enabled. Default value (true).
      Parameters:
      enabled - True if view rendering is enabled
    • setFolder

      public void setFolder(String folder)
      The folder to look for views.
      Parameters:
      folder - The folder
    • setDir

      public void setDir(String folder)
      The folder to look for views. Default value ("views").
      Parameters:
      folder - The folder