@ConfigurationProperties(prefix="spring.velocity") public class VelocityProperties extends AbstractTemplateViewResolverProperties
ConfigurationProperties
for configuring VelocityModifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PREFIX |
static String |
DEFAULT_RESOURCE_LOADER_PATH |
static String |
DEFAULT_SUFFIX |
Constructor and Description |
---|
VelocityProperties() |
Modifier and Type | Method and Description |
---|---|
void |
applyToViewResolver(Object viewResolver)
Apply the given properties to a
AbstractTemplateViewResolver . |
String |
getDateToolAttribute() |
String |
getNumberToolAttribute() |
Map<String,String> |
getProperties() |
String |
getResourceLoaderPath() |
String |
getToolboxConfigLocation() |
void |
setDateToolAttribute(String dateToolAttribute) |
void |
setNumberToolAttribute(String numberToolAttribute) |
void |
setProperties(Map<String,String> properties) |
void |
setResourceLoaderPath(String resourceLoaderPath) |
void |
setToolboxConfigLocation(String toolboxConfigLocation) |
getCharSet, getContentType, getPrefix, getRequestContextAttribute, getSuffix, getViewNames, isAllowRequestOverride, isCache, isCheckTemplateLocation, isExposeRequestAttributes, isExposeSessionAttributes, isExposeSpringMacroHelpers, setAllowRequestOverride, setCache, setCharSet, setCheckTemplateLocation, setContentType, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpers, setPrefix, setRequestContextAttribute, setSuffix, setViewNames
public static final String DEFAULT_RESOURCE_LOADER_PATH
public static final String DEFAULT_PREFIX
public static final String DEFAULT_SUFFIX
public String getDateToolAttribute()
public void setDateToolAttribute(String dateToolAttribute)
public String getNumberToolAttribute()
public void setNumberToolAttribute(String numberToolAttribute)
public String getResourceLoaderPath()
public void setResourceLoaderPath(String resourceLoaderPath)
public String getToolboxConfigLocation()
public void setToolboxConfigLocation(String toolboxConfigLocation)
public void applyToViewResolver(Object viewResolver)
AbstractTemplateViewResolverProperties
AbstractTemplateViewResolver
. Use Object in
signature to avoid runtime dependency on MVC, which means that the template engine
can be used in a non-web application.applyToViewResolver
in class AbstractTemplateViewResolverProperties
viewResolver
- the resolver to apply the properties to.Copyright © 2014 Pivotal Software, Inc.. All rights reserved.