org.springframework.extensions.webscripts.processor
Class GroovyScriptProcessor

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
              extended by org.springframework.extensions.webscripts.processor.GroovyScriptProcessor
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, Processor, ScriptProcessor

public class GroovyScriptProcessor
extends AbstractScriptProcessor

Author:
muzquiano

Field Summary
 
Fields inherited from class org.springframework.extensions.webscripts.processor.BaseProcessor
processorExtensions
 
Constructor Summary
GroovyScriptProcessor()
           
 
Method Summary
 Object executeGroovyString(String script, Map<String,Object> model)
           
 Object executeScript(ScriptContent scriptContent, Map<String,Object> model)
           
 Object executeScript(String path, Map<String,Object> model)
           
 ScriptContent findScript(String path)
           
 String getExtension()
           
 String getName()
           
 void init()
           
 void reset()
           
 Object unwrapValue(Object value)
           
 
Methods inherited from class org.springframework.extensions.webscripts.processor.AbstractScriptProcessor
addProcessorModelExtensions, getScriptLoader, getSearchPath, initLoaders, register, setSearchPath
 
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
 

Constructor Detail

GroovyScriptProcessor

public GroovyScriptProcessor()
Method Detail

getExtension

public String getExtension()

getName

public String getName()

executeGroovyString

public Object executeGroovyString(String script,
                                  Map<String,Object> model)
See Also:
org.alfresco.service.cmr.repository.ScriptProcessor#executeString(java.lang.String, java.util.Map)

init

public void init()
Overrides:
init in class AbstractScriptProcessor

findScript

public ScriptContent findScript(String path)

executeScript

public Object executeScript(String path,
                            Map<String,Object> model)

executeScript

public Object executeScript(ScriptContent scriptContent,
                            Map<String,Object> model)

unwrapValue

public Object unwrapValue(Object value)

reset

public void reset()


Copyright © 2009 SpringSource, Inc. All Rights Reserved.