Class AbstractScriptProcessor
- java.lang.Object
-
- org.springframework.extensions.webscripts.processor.BaseProcessor
-
- org.springframework.extensions.webscripts.processor.BaseRegisterableScriptProcessor
-
- org.springframework.extensions.webscripts.processor.AbstractScriptProcessor
-
- All Implemented Interfaces:
java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener,Processor,ScriptProcessor
- Direct Known Subclasses:
JSScriptProcessor
public abstract class AbstractScriptProcessor extends BaseRegisterableScriptProcessor implements org.springframework.context.ApplicationContextAware, ScriptProcessor
Abstract class for use in helping developers to build script processors that take advantage of the web script framework's inherent support for search paths.- Author:
- muzquiano
-
-
Field Summary
-
Fields inherited from class org.springframework.extensions.webscripts.processor.BaseProcessor
processorExtensions
-
-
Constructor Summary
Constructors Constructor Description AbstractScriptProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddProcessorModelExtensions(java.lang.Object model)Add any configured processor model extensions to the model.protected ScriptLoadergetScriptLoader()Gets the script loader.protected SearchPathgetSearchPath()Gets the search path.voidinit()Inits the processorprotected voidinitLoaders()Initializes the script loadersvoidregister()Registers this processor with the parent processorvoidsetSearchPath(SearchPath searchPath)-
Methods inherited from class org.springframework.extensions.webscripts.processor.BaseRegisterableScriptProcessor
getScriptProcessorRegistry, onApplicationEvent, setApplicationContext, setScriptProcessorRegistry
-
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.context.ApplicationContextAware
setApplicationContext
-
Methods inherited from interface org.springframework.extensions.surf.core.processor.Processor
getExtension, getName
-
Methods inherited from interface org.springframework.extensions.webscripts.ScriptProcessor
executeScript, executeScript, findScript, reset, unwrapValue
-
-
-
-
Method Detail
-
setSearchPath
public void setSearchPath(SearchPath searchPath)
- Parameters:
searchPath- SearchPath
-
getSearchPath
protected SearchPath getSearchPath()
Gets the search path.- Returns:
- the search path
-
getScriptLoader
protected ScriptLoader getScriptLoader()
Gets the script loader.- Returns:
- the script loader
-
addProcessorModelExtensions
protected void addProcessorModelExtensions(java.lang.Object model)
Add any configured processor model extensions to the model.- Parameters:
model- Object
-
initLoaders
protected void initLoaders()
Initializes the script loaders
-
init
public void init()
Description copied from class:BaseRegisterableScriptProcessorInits the processor- Specified by:
initin classBaseRegisterableScriptProcessor
-
register
public void register()
Description copied from class:BaseRegisterableScriptProcessorRegisters this processor with the parent processor- Specified by:
registerin classBaseRegisterableScriptProcessor
-
-