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