Package io.micronaut.views
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
-
PREFIX
The prefix for view configuration.- See Also:
-
DEFAULT_FOLDER
The default views folder.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
ViewsConfigurationProperties
public ViewsConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()enabled getter.- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- boolean flag indicating whether the security features are enabled.
-
getFolder
- Specified by:
getFolder
in interfaceViewsConfiguration
- 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
The folder to look for views.- Parameters:
folder
- The folder
-
setDir
The folder to look for views. Default value ("views").- Parameters:
folder
- The folder
-