@ConfigurationProperties(value="micronaut.views.velocity") public class VelocityViewsRendererConfigurationProperties extends java.lang.Object implements VelocityViewsRendererConfiguration
ConfigurationProperties
implementation of VelocityViewsRendererConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
DEFAULT_EXTENSION
The default extension.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
VelocityViewsRendererConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultExtension() |
boolean |
isEnabled()
enabled getter.
|
void |
setDefaultExtension(java.lang.String defaultExtension)
Sets the defautlt extension to use for velocity templates.
|
void |
setEnabled(boolean enabled)
Whether velocity views are enabled.
|
public static final java.lang.String PREFIX
public static final java.lang.String DEFAULT_EXTENSION
public static final boolean DEFAULT_ENABLED
public VelocityViewsRendererConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
VelocityViewsRenderer
is enabled.public java.lang.String getDefaultExtension()
getDefaultExtension
in interface VelocityViewsRendererConfiguration
public void setEnabled(boolean enabled)
enabled
- True if they arepublic void setDefaultExtension(java.lang.String defaultExtension)
defaultExtension
- The default extension