|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.processor.BaseProcessor org.springframework.extensions.webscripts.processor.BaseRegisterableTemplateProcessor org.springframework.extensions.webscripts.processor.AbstractTemplateProcessor
public abstract class AbstractTemplateProcessor
Abstract class for use in helping developers to build template processors that take advantage of the web script framework's inherent support for search paths.
Field Summary |
---|
Fields inherited from class org.springframework.extensions.webscripts.processor.BaseProcessor |
---|
processorExtensions |
Constructor Summary | |
---|---|
AbstractTemplateProcessor()
|
Method Summary | |
---|---|
protected void |
addProcessorModelExtensions(Object model)
Add any configured processor model extensions to the model. |
protected SearchPath |
getSearchPath()
Gets the search path. |
protected freemarker.cache.TemplateLoader |
getTemplateLoader()
Gets the loader. |
void |
init()
Inits the processor |
protected void |
initLoaders()
Initializes the template loaders |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event)
|
void |
register()
Registers this processor with the parent processor |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Sets the application context. |
void |
setSearchPath(SearchPath searchPath)
|
Methods inherited from class org.springframework.extensions.webscripts.processor.BaseRegisterableTemplateProcessor |
---|
getTemplateProcessorRegistry, setTemplateProcessorRegistry |
Methods inherited from class org.springframework.extensions.webscripts.processor.BaseProcessor |
---|
registerProcessorExtension |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.extensions.webscripts.TemplateProcessor |
---|
getDefaultEncoding, hasTemplate, process, processString, reset |
Methods inherited from interface org.springframework.extensions.surf.core.processor.Processor |
---|
getExtension, getName |
Constructor Detail |
---|
public AbstractTemplateProcessor()
Method Detail |
---|
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
setApplicationContext
in class BaseRegisterableTemplateProcessor
applicationContext
- the new application contextpublic void setSearchPath(SearchPath searchPath)
searchPath
- protected freemarker.cache.TemplateLoader getTemplateLoader()
protected SearchPath getSearchPath()
protected void initLoaders()
protected void addProcessorModelExtensions(Object model)
model
- public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener
onApplicationEvent
in class BaseRegisterableTemplateProcessor
public void init()
BaseRegisterableTemplateProcessor
init
in class BaseRegisterableTemplateProcessor
public void register()
BaseRegisterableTemplateProcessor
register
in class BaseRegisterableTemplateProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |