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 TypeMethodDescriptionThe default extension to use for velocity templates.boolean
Whether velocity views are enabled.void
setDefaultExtension
(String defaultExtension) Sets the default 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()Whether velocity views are enabled. Default value (true).- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- boolean flag indicating whether
VelocityViewsRenderer
is enabled.
-
getDefaultExtension
The default extension to use for velocity templates. Default value ("vm").- Specified by:
getDefaultExtension
in interfaceVelocityViewsRendererConfiguration
- Returns:
- Default extension for templates. By default "vm".
-
setEnabled
public void setEnabled(boolean enabled) Whether velocity views are enabled.- Parameters:
enabled
- True if they are
-
setDefaultExtension
Sets the default extension to use for velocity templates.- Parameters:
defaultExtension
- The default extension
-