Class ActionExecutorDispatcherImpl
- java.lang.Object
-
- org.apache.unomi.services.actions.impl.ActionExecutorDispatcherImpl
-
- All Implemented Interfaces:
ActionExecutorDispatcher
public class ActionExecutorDispatcherImpl extends Object implements ActionExecutorDispatcher
-
-
Constructor Summary
Constructors Constructor Description ActionExecutorDispatcherImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindDispatcher(org.osgi.framework.ServiceReference<ActionDispatcher> actionDispatcherServiceReference)voidbindExecutor(org.osgi.framework.ServiceReference<ActionExecutor> actionExecutorServiceReference)intexecute(Action action, Event event)Execute an action dispatcher according to the action type of the actionprotected ObjectexecuteScript(String script, Event event)ActiongetContextualAction(Action action, Event event)voidsetBundleContext(org.osgi.framework.BundleContext bundleContext)voidsetMetricsService(MetricsService metricsService)voidsetScriptExecutor(ScriptExecutor scriptExecutor)voidunbindDispatcher(org.osgi.framework.ServiceReference<ActionDispatcher> actionDispatcherServiceReference)voidunbindExecutor(org.osgi.framework.ServiceReference<ActionExecutor> actionExecutorServiceReference)
-
-
-
Method Detail
-
setMetricsService
public void setMetricsService(MetricsService metricsService)
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
-
setScriptExecutor
public void setScriptExecutor(ScriptExecutor scriptExecutor)
-
execute
public int execute(Action action, Event event)
Description copied from interface:ActionExecutorDispatcherExecute an action dispatcher according to the action type of the action- Specified by:
executein 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)
-
-