public class RepositoryTemplateProcessor extends FreeMarkerProcessor implements org.springframework.extensions.webscripts.TemplateProcessor, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener
Modifier and Type | Field and Description |
---|---|
protected String |
defaultEncoding |
protected FreeMarkerProcessor |
freeMarkerProcessor |
protected org.springframework.extensions.webscripts.SearchPath |
searchPath |
protected freemarker.template.Configuration |
templateConfig |
extension, name, processorExtensions, scriptService, services, templateService
Constructor and Description |
---|
RepositoryTemplateProcessor() |
Modifier and Type | Method and Description |
---|---|
protected freemarker.template.Configuration |
getConfig()
Get the FreeMarker configuration for this instance
|
String |
getDefaultEncoding() |
boolean |
hasTemplate(String templatePath) |
protected void |
initConfig()
Initialise FreeMarker Configuration
|
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
reset() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setCacheSize(int cacheSize)
Deprecated.
|
void |
setDefaultEncoding(String defaultEncoding)
Set the default template encoding
|
void |
setFreeMarkerProcessor(FreeMarkerProcessor freeMarkerProcessor)
Set the freemarker processor
|
void |
setSearchPath(org.springframework.extensions.webscripts.SearchPath searchPath) |
void |
setUpdateDelay(int updateDelay) |
convertValue, getStringConfig, process, process, processString, setLocalizedLookup
getExtension, getName, getProcessorExtensions, register, registerProcessorExtension, setExtension, setName, setScriptService, setServiceRegistry, setTemplateService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected org.springframework.extensions.webscripts.SearchPath searchPath
protected String defaultEncoding
protected freemarker.template.Configuration templateConfig
protected FreeMarkerProcessor freeMarkerProcessor
public void setDefaultEncoding(String defaultEncoding)
FreeMarkerProcessor
setDefaultEncoding
in class FreeMarkerProcessor
defaultEncoding
- the default encodingpublic String getDefaultEncoding()
public void setUpdateDelay(int updateDelay)
updateDelay
- the time in seconds between checks on the modified date for cached templates@Deprecated public void setCacheSize(int cacheSize)
cacheSize
- not used anymorepublic void setSearchPath(org.springframework.extensions.webscripts.SearchPath searchPath)
searchPath
- SearchPathpublic void setFreeMarkerProcessor(FreeMarkerProcessor freeMarkerProcessor)
freeMarkerProcessor
- the free marker processorprotected freemarker.template.Configuration getConfig()
FreeMarkerProcessor
getConfig
in class FreeMarkerProcessor
public void reset()
public boolean hasTemplate(String templatePath)
protected void initConfig()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener
Copyright © 2005–2017 Alfresco Software. All rights reserved.