public class GroovyActionDispatcher extends Object implements ActionDispatcher
Constructor and Description |
---|
GroovyActionDispatcher() |
Modifier and Type | Method and Description |
---|---|
Integer |
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.
|
String |
getPrefix()
Retrieves the prefix that this dispatcher recognizes and that is used in the actionTypeId.
|
void |
setGroovyActionsService(GroovyActionsService groovyActionsService) |
void |
setMetricsService(MetricsService metricsService) |
public void setMetricsService(MetricsService metricsService)
public void setGroovyActionsService(GroovyActionsService groovyActionsService)
public String getPrefix()
ActionDispatcher
getPrefix
in interface ActionDispatcher
public Integer execute(Action action, Event event, String actionName)
ActionDispatcher
execute
in interface ActionDispatcher
action
- the Action
to executeevent
- the Event
that triggered the actionactionName
- the name of the action to execute that is after the prefix in the action typeEventService
Copyright © 2014–2022 Apache Software Foundation. All rights reserved.