org.cyclades.nyxlet.script_engine.actionhandler
Class GeneralScriptActionHandler
java.lang.Object
org.cyclades.engine.nyxlet.templates.stroma.actionhandler.ActionHandler
org.cyclades.nyxlet.script_engine.actionhandler.api.SimpleScriptActionHandler
org.cyclades.nyxlet.script_engine.actionhandler.GeneralScriptActionHandler
public class GeneralScriptActionHandler
- extends SimpleScriptActionHandler
This is the "generic" action handler supporting all scripting languages loaded via the SPI mechanism (whose libraries are
included in the classpath). By default, the JDK comes with javascript. It is encouraged to run the script specific ActionHandler
if one is provided within this service as further optimizations are possible and implemented. For example, the
GroovyScriptActionHandler ("groovy") caches compiled scripts in a LRU data structure and can run much faster than calling this
ActionHandler with the "groovy" script-type multiple times for the same script.
| Fields inherited from class org.cyclades.engine.nyxlet.templates.stroma.actionhandler.ActionHandler |
fieldValidators, parentNyxlet |
|
Method Summary |
java.lang.Object |
executeScripts(java.util.List<java.lang.String> scriptList,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> baseParameters,
java.lang.Object scriptInputObject)
|
void |
init()
|
| Methods inherited from class org.cyclades.engine.nyxlet.templates.stroma.actionhandler.ActionHandler |
getFieldValidators, getParentNyxlet, getRequiredParameterKeys, handleException, handleException, handleException, ignoreSTROMAParameters, parameterAsBoolean |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCRIPT_TYPE_PARAMETER
public static final java.lang.String SCRIPT_TYPE_PARAMETER
- See Also:
- Constant Field Values
GeneralScriptActionHandler
public GeneralScriptActionHandler(org.cyclades.engine.nyxlet.templates.stroma.STROMANyxlet parentNyxlet)
executeScripts
public java.lang.Object executeScripts(java.util.List<java.lang.String> scriptList,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> baseParameters,
java.lang.Object scriptInputObject)
throws java.lang.Exception
- Specified by:
executeScripts in class SimpleScriptActionHandler
- Throws:
java.lang.Exception
init
public void init()
throws java.lang.Exception
- Overrides:
init in class SimpleScriptActionHandler
- Throws:
java.lang.Exception