org.cyclades.nyxlet.script_engine.actionhandler
Class GeneralScriptActionHandler

java.lang.Object
  extended by org.cyclades.engine.nyxlet.templates.stroma.actionhandler.ActionHandler
      extended by org.cyclades.nyxlet.script_engine.actionhandler.api.SimpleScriptActionHandler
          extended by 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.


Field Summary
static java.lang.String SCRIPT_TYPE_PARAMETER
           
 
Fields inherited from class org.cyclades.nyxlet.script_engine.actionhandler.api.SimpleScriptActionHandler
INPUT_PARAMETER, OUTPUT_PARAMETER, RUN_SCRIPT_FIRST_PARAMETER, SCRIPT_PARAMETER, SCRIPT_URI_PARAMETER, USE_MAP_CHANNEL_PARAMETER
 
Fields inherited from class org.cyclades.engine.nyxlet.templates.stroma.actionhandler.ActionHandler
fieldValidators, parentNyxlet
 
Constructor Summary
GeneralScriptActionHandler(org.cyclades.engine.nyxlet.templates.stroma.STROMANyxlet 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.nyxlet.script_engine.actionhandler.api.SimpleScriptActionHandler
destroy, handle, isHealthy
 
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
 

Field Detail

SCRIPT_TYPE_PARAMETER

public static final java.lang.String SCRIPT_TYPE_PARAMETER
See Also:
Constant Field Values
Constructor Detail

GeneralScriptActionHandler

public GeneralScriptActionHandler(org.cyclades.engine.nyxlet.templates.stroma.STROMANyxlet parentNyxlet)
Method Detail

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