- All Implemented Interfaces:
public class GroovyActionDispatcher extends Object implements ActionDispatcherAn implementation of an ActionDispatcher for the Groovy language. This dispatcher will load the groovy action script matching to an actionName. If a script if found, it will be executed.
Constructors Constructor Description
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
execute(Action action, Event event, String actionName)This method is responsible of executing the action logic, so it will probably dispatch to an underlying engine such as a scripting engine or any other type.
getPrefix()Retrieves the prefix that this dispatcher recognizes and that is used in the actionTypeId.
public void setMetricsService(MetricsService metricsService)
public void setGroovyActionsService(GroovyActionsService groovyActionsService)
public String getPrefix()Description copied from interface:
ActionDispatcherRetrieves the prefix that this dispatcher recognizes and that is used in the actionTypeId. For example to dispatch to a GroovyActionDispatcher, the prefix could be : "groovy". Then when you want to refer to a Groovy action type you could do something like this: "groovy:myGroovyAction". Prefixes MUST be globally unique. Not sanity check is done on this so please be careful!
executeDescription copied from interface:
- Specified by:
Eventthat triggered the action
actionName- the name of the action to execute that is after the prefix in the action type
- an integer status corresponding to what happened as defined by public constants of