Class BaseRegisterableTemplateProcessor
- java.lang.Object
-
- org.springframework.extensions.webscripts.processor.BaseProcessor
-
- org.springframework.extensions.webscripts.processor.BaseRegisterableTemplateProcessor
-
- All Implemented Interfaces:
java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener,Processor
- Direct Known Subclasses:
AbstractTemplateProcessor
public abstract class BaseRegisterableTemplateProcessor extends BaseProcessor implements org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener
Base class for a registerable processor- Author:
- muzquiano
-
-
Field Summary
-
Fields inherited from class org.springframework.extensions.webscripts.processor.BaseProcessor
processorExtensions
-
-
Constructor Summary
Constructors Constructor Description BaseRegisterableTemplateProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description TemplateProcessorRegistrygetTemplateProcessorRegistry()Gets the template processor registryabstract voidinit()Inits the processorvoidonApplicationEvent(org.springframework.context.ApplicationEvent event)abstract voidregister()Registers this processor with the parent processorvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)Sets the application context.voidsetTemplateProcessorRegistry(TemplateProcessorRegistry templateProcessorRegistry)Sets the template processor registry to which this processor will be registered-
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.surf.core.processor.Processor
getExtension, getName
-
-
-
-
Method Detail
-
setTemplateProcessorRegistry
public void setTemplateProcessorRegistry(TemplateProcessorRegistry templateProcessorRegistry)
Sets the template processor registry to which this processor will be registered- Parameters:
templateProcessorRegistry- the script processor registry
-
getTemplateProcessorRegistry
public TemplateProcessorRegistry getTemplateProcessorRegistry()
Gets the template processor registry- Returns:
- template processor registry
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Sets the application context.- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Parameters:
applicationContext- the new application context
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener
-
init
public abstract void init()
Inits the processor
-
register
public abstract void register()
Registers this processor with the parent processor
-
-