Package io.micronaut.views.velocity
Class VelocityViewsRendererConfigurationProperties
java.lang.Object
io.micronaut.views.velocity.VelocityViewsRendererConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,VelocityViewsRendererConfiguration
@ConfigurationProperties("micronaut.views.velocity")
public class VelocityViewsRendererConfigurationProperties
extends Object
implements VelocityViewsRendererConfiguration
ConfigurationProperties
implementation of VelocityViewsRendererConfiguration
.- Since:
- 1.0
- Author:
- Sergio del Amo
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
enabled getter.void
setDefaultExtension
(String defaultExtension) Sets the defautlt extension to use for velocity templates.void
setEnabled
(boolean enabled) Whether velocity views are enabled.
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_EXTENSION
The default extension.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
VelocityViewsRendererConfigurationProperties
public VelocityViewsRendererConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()enabled getter.- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- boolean flag indicating whether
VelocityViewsRenderer
is enabled.
-
getDefaultExtension
- Specified by:
getDefaultExtension
in interfaceVelocityViewsRendererConfiguration
- Returns:
- Default extension for templates. By default "vm".
-
setEnabled
public void setEnabled(boolean enabled) Whether velocity views are enabled. Default value (true).- Parameters:
enabled
- True if they are
-
setDefaultExtension
Sets the defautlt extension to use for velocity templates. Default value ("vm").- Parameters:
defaultExtension
- The default extension
-