org.springframework.extensions.webscripts.processor
Class AbstractScriptProcessor

java.lang.Object
  extended by org.springframework.extensions.webscripts.processor.BaseProcessor
      extended by org.springframework.extensions.webscripts.processor.BaseRegisterableScriptProcessor
          extended by org.springframework.extensions.webscripts.processor.AbstractScriptProcessor
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, Processor, ScriptProcessor
Direct Known Subclasses:
GroovyScriptProcessor, JSScriptProcessor, PHPScriptProcessor

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
AbstractScriptProcessor()
           
 
Method Summary
protected  void addProcessorModelExtensions(Object model)
          Add any configured processor model extensions to the model.
protected  ScriptLoader getScriptLoader()
          Gets the script loader.
protected  SearchPath getSearchPath()
          Gets the search path.
 void init()
          Inits the processor
protected  void initLoaders()
          Initializes the script loaders
 void register()
          Registers this processor with the parent processor
 void setSearchPath(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.webscripts.ScriptProcessor
executeScript, executeScript, findScript, reset, unwrapValue
 
Methods inherited from interface org.springframework.extensions.surf.core.processor.Processor
getExtension, getName
 

Constructor Detail

AbstractScriptProcessor

public AbstractScriptProcessor()
Method Detail

setSearchPath

public void setSearchPath(SearchPath searchPath)
Parameters:
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(Object model)
Add any configured processor model extensions to the model.

Parameters:
model -

initLoaders

protected void initLoaders()
Initializes the script loaders


init

public void init()
Description copied from class: BaseRegisterableScriptProcessor
Inits the processor

Specified by:
init in class BaseRegisterableScriptProcessor

register

public void register()
Description copied from class: BaseRegisterableScriptProcessor
Registers this processor with the parent processor

Specified by:
register in class BaseRegisterableScriptProcessor


Copyright © 2009 SpringSource, Inc. All Rights Reserved.