Class ActionExecutorDispatcherImpl
java.lang.Object
org.apache.unomi.services.actions.impl.ActionExecutorDispatcherImpl
- All Implemented Interfaces:
ActionExecutorDispatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
bindDispatcher
(org.osgi.framework.ServiceReference<ActionDispatcher> actionDispatcherServiceReference) void
bindExecutor
(org.osgi.framework.ServiceReference<ActionExecutor> actionExecutorServiceReference) int
Execute an action dispatcher according to the action type of the actionprotected Object
executeScript
(String script, Event event) getContextualAction
(Action action, Event event) void
setBundleContext
(org.osgi.framework.BundleContext bundleContext) void
setMetricsService
(MetricsService metricsService) void
setScriptExecutor
(ScriptExecutor scriptExecutor) void
unbindDispatcher
(org.osgi.framework.ServiceReference<ActionDispatcher> actionDispatcherServiceReference) void
unbindExecutor
(org.osgi.framework.ServiceReference<ActionExecutor> actionExecutorServiceReference)
-
Constructor Details
-
ActionExecutorDispatcherImpl
public ActionExecutorDispatcherImpl()
-
-
Method Details
-
setMetricsService
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext) -
setScriptExecutor
-
getContextualAction
-
execute
Description copied from interface:ActionExecutorDispatcher
Execute an action dispatcher according to the action type of the action- Specified by:
execute
in interfaceActionExecutorDispatcher
- Parameters:
action
- action to executeevent
- received event- Returns:
- result code of the execution
-
bindExecutor
public void bindExecutor(org.osgi.framework.ServiceReference<ActionExecutor> actionExecutorServiceReference) -
unbindExecutor
public void unbindExecutor(org.osgi.framework.ServiceReference<ActionExecutor> actionExecutorServiceReference) -
bindDispatcher
public void bindDispatcher(org.osgi.framework.ServiceReference<ActionDispatcher> actionDispatcherServiceReference) -
unbindDispatcher
public void unbindDispatcher(org.osgi.framework.ServiceReference<ActionDispatcher> actionDispatcherServiceReference) -
executeScript
-