Interface ScriptProcessor
- All Known Implementing Classes:
AbstractScriptProcessor,JSScriptProcessor
public interface ScriptProcessor
Web Script Processor
- Author:
- davidc
-
Method Summary
Modifier and TypeMethodDescriptionexecuteScript(String path, Map<String, Object> model) Execute scriptexecuteScript(ScriptContent location, Map<String, Object> model) Execute scriptfindScript(String path) Find a script at the specified path (within registered Web Script stores)voidreset()Reset script cacheunwrapValue(Object value) Unwrap value returned by script TODO: Remove this method when value conversion is truly hidden within script engine
-
Method Details
-
findScript
Find a script at the specified path (within registered Web Script stores)- Parameters:
path- script path- Returns:
- script location (or null, if not found)
-
executeScript
Execute script- Parameters:
path- script pathmodel- model- Returns:
- script result
-
executeScript
Execute script- Parameters:
location- script locationmodel- model- Returns:
- script result
-
unwrapValue
Unwrap value returned by script TODO: Remove this method when value conversion is truly hidden within script engine- Parameters:
value- value to unwrap- Returns:
- unwrapped value
-
reset
void reset()Reset script cache
-