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:
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdd any configured processor model extensions to the model.protected ScriptLoaderGets the script loader.protected SearchPathGets the search path.voidinit()Inits the processorprotected voidInitializes 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, setScriptProcessorRegistryMethods inherited from class org.springframework.extensions.webscripts.processor.BaseProcessor
registerProcessorExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecutionMethods inherited from interface org.springframework.extensions.surf.core.processor.Processor
getExtension, getNameMethods inherited from interface org.springframework.extensions.webscripts.ScriptProcessor
executeScript, executeScript, findScript, reset, unwrapValue
-
Constructor Details
-
AbstractScriptProcessor
public AbstractScriptProcessor()
-
-
Method Details
-
setSearchPath
- Parameters:
searchPath- SearchPath
-
getSearchPath
Gets the search path.- Returns:
- the search path
-
getScriptLoader
Gets the script loader.- Returns:
- the script loader
-
addProcessorModelExtensions
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
-