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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe resources' folder where views should be searched for.boolean
Whether view rendering is enabled.void
The folder to look for views.void
setEnabled
(boolean enabled) Whether view rendering is enabled.void
The resources' folder where views should be searched for.
-
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()Whether view rendering is enabled. Default value (true).- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- boolean flag indicating whether the security features are enabled.
-
getFolder
The resources' folder where views should be searched for. Default value ("views").- Specified by:
getFolder
in interfaceViewsConfiguration
- Returns:
- The folder
-
setEnabled
public void setEnabled(boolean enabled) Whether view rendering is enabled. Default value (true).- Parameters:
enabled
- True if view rendering is enabled
-
setFolder
The resources' folder where views should be searched for. Default value ("views").- Parameters:
folder
- The folder
-
setDir
The folder to look for views. Default value ("views").- Parameters:
folder
- The folder
-