public class ActionExecutorDispatcherImpl extends Object implements ActionExecutorDispatcher
| Constructor and Description |
|---|
ActionExecutorDispatcherImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindDispatcher(org.osgi.framework.ServiceReference<org.apache.unomi.api.actions.ActionDispatcher> actionDispatcherServiceReference) |
void |
bindExecutor(org.osgi.framework.ServiceReference<org.apache.unomi.api.actions.ActionExecutor> actionExecutorServiceReference) |
int |
execute(org.apache.unomi.api.actions.Action action,
org.apache.unomi.api.Event event)
Execute an action dispatcher according to the action type of the action
|
protected Object |
executeScript(String script,
org.apache.unomi.api.Event event) |
org.apache.unomi.api.actions.Action |
getContextualAction(org.apache.unomi.api.actions.Action action,
org.apache.unomi.api.Event event) |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setMetricsService(org.apache.unomi.metrics.MetricsService metricsService) |
void |
setScriptExecutor(org.apache.unomi.scripting.ScriptExecutor scriptExecutor) |
void |
unbindDispatcher(org.osgi.framework.ServiceReference<org.apache.unomi.api.actions.ActionDispatcher> actionDispatcherServiceReference) |
void |
unbindExecutor(org.osgi.framework.ServiceReference<org.apache.unomi.api.actions.ActionExecutor> actionExecutorServiceReference) |
public void setMetricsService(org.apache.unomi.metrics.MetricsService metricsService)
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public void setScriptExecutor(org.apache.unomi.scripting.ScriptExecutor scriptExecutor)
public org.apache.unomi.api.actions.Action getContextualAction(org.apache.unomi.api.actions.Action action,
org.apache.unomi.api.Event event)
public int execute(org.apache.unomi.api.actions.Action action,
org.apache.unomi.api.Event event)
ActionExecutorDispatcherexecute in interface ActionExecutorDispatcheraction - action to executeevent - received eventpublic void bindExecutor(org.osgi.framework.ServiceReference<org.apache.unomi.api.actions.ActionExecutor> actionExecutorServiceReference)
public void unbindExecutor(org.osgi.framework.ServiceReference<org.apache.unomi.api.actions.ActionExecutor> actionExecutorServiceReference)
public void bindDispatcher(org.osgi.framework.ServiceReference<org.apache.unomi.api.actions.ActionDispatcher> actionDispatcherServiceReference)
public void unbindDispatcher(org.osgi.framework.ServiceReference<org.apache.unomi.api.actions.ActionDispatcher> actionDispatcherServiceReference)
Copyright © 2014–2023 Apache Software Foundation. All rights reserved.