@ConfigurationProperties(value="micronaut.views") public class ViewsConfigurationProperties extends java.lang.Object implements ViewsConfiguration
ViewsConfiguration
. Views configuration properties.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
DEFAULT_FOLDER
The default views folder.
|
static java.lang.String |
PREFIX
The prefix for view configuration.
|
Constructor and Description |
---|
ViewsConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFolder() |
boolean |
isEnabled()
enabled getter.
|
void |
setDir(java.lang.String folder)
The folder to look for views.
|
void |
setEnabled(boolean enabled)
Whether view rendering is enabled.
|
void |
setFolder(java.lang.String folder)
The folder to look for views.
|
public static final java.lang.String PREFIX
public static final java.lang.String DEFAULT_FOLDER
public static final boolean DEFAULT_ENABLED
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public java.lang.String getFolder()
getFolder
in interface ViewsConfiguration
public void setEnabled(boolean enabled)
enabled
- True if view rendering is enabledpublic void setFolder(java.lang.String folder)
folder
- The folderpublic void setDir(java.lang.String folder)
folder
- The folder