org.springframework.extensions.webscripts.processor
Class BaseRegisterableScriptProcessor

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

public abstract class BaseRegisterableScriptProcessor
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
BaseRegisterableScriptProcessor()
           
 
Method Summary
 ScriptProcessorRegistry getScriptProcessorRegistry()
          Gets the script processor registry
abstract  void init()
          Inits the processor
 void onApplicationEvent(org.springframework.context.ApplicationEvent event)
           
abstract  void register()
          Registers this processor with the parent processor
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
          Sets the application context.
 void setScriptProcessorRegistry(ScriptProcessorRegistry scriptProcessorRegistry)
          Sets the script 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
 

Constructor Detail

BaseRegisterableScriptProcessor

public BaseRegisterableScriptProcessor()
Method Detail

setScriptProcessorRegistry

public void setScriptProcessorRegistry(ScriptProcessorRegistry scriptProcessorRegistry)
Sets the script processor registry to which this processor will be registered

Parameters:
scriptProcessorRegistry - the script processor registry

getScriptProcessorRegistry

public ScriptProcessorRegistry getScriptProcessorRegistry()
Gets the script processor registry

Returns:
script processor registry

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Sets the application context.

Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Parameters:
applicationContext - the new application context

onApplicationEvent

public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener

init

public abstract void init()
Inits the processor


register

public abstract void register()
Registers this processor with the parent processor



Copyright © 2009 SpringSource, Inc. All Rights Reserved.