|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.processor.BaseProcessor org.springframework.extensions.webscripts.processor.BaseRegisterableScriptProcessor org.springframework.extensions.webscripts.processor.AbstractScriptProcessor org.springframework.extensions.webscripts.processor.GroovyScriptProcessor
public class GroovyScriptProcessor
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)
Execute script |
Object |
executeScript(String path,
Map<String,Object> model)
Execute script |
ScriptContent |
findScript(String path)
Find a script at the specified path (within registered Web Script stores) |
String |
getExtension()
The file extension that the processor is associated with, null if none. |
String |
getName()
Get the name of the processor |
void |
init()
Inits the processor |
void |
reset()
Reset script cache |
Object |
unwrapValue(Object value)
Unwrap value returned by script TODO: Remove this method when value conversion is truly hidden within script engine |
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 |
---|
public GroovyScriptProcessor()
Method Detail |
---|
public String getExtension()
Processor
public String getName()
Processor
public Object executeGroovyString(String script, Map<String,Object> model)
org.alfresco.service.cmr.repository.ScriptProcessor#executeString(java.lang.String, java.util.Map)
public void init()
BaseRegisterableScriptProcessor
init
in class AbstractScriptProcessor
public ScriptContent findScript(String path)
ScriptProcessor
path
- script path
public Object executeScript(String path, Map<String,Object> model)
ScriptProcessor
path
- script pathmodel
- model
public Object executeScript(ScriptContent scriptContent, Map<String,Object> model)
ScriptProcessor
scriptContent
- script locationmodel
- model
public Object unwrapValue(Object value)
ScriptProcessor
value
- value to unwrap
public void reset()
ScriptProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |