Search in sources :

Example 1 with ServiceTrackerActionServiceProvider

use of org.eclipse.smarthome.model.script.internal.engine.ServiceTrackerActionServiceProvider in project smarthome by eclipse.

the class ServiceModule method configure.

@Override
public void configure(Binder binder) {
    binder.bind(ItemRegistry.class).toInstance(scriptServiceUtil.getItemRegistryInstance());
    binder.bind(ThingRegistry.class).toInstance(scriptServiceUtil.getThingRegistryInstance());
    binder.bind(ModelRepository.class).toInstance(scriptServiceUtil.getModelRepositoryInstance());
    binder.bind(ScriptEngine.class).toInstance(scriptEngine);
    binder.bind(IActionServiceProvider.class).toInstance(new ServiceTrackerActionServiceProvider(scriptServiceUtil));
    binder.bind(Script.class).to(ScriptImpl.class);
}
Also used : ModelRepository(org.eclipse.smarthome.model.core.ModelRepository) Script(org.eclipse.smarthome.model.script.script.Script) ServiceTrackerActionServiceProvider(org.eclipse.smarthome.model.script.internal.engine.ServiceTrackerActionServiceProvider) IActionServiceProvider(org.eclipse.smarthome.model.script.engine.IActionServiceProvider) ItemRegistry(org.eclipse.smarthome.core.items.ItemRegistry) ScriptEngine(org.eclipse.smarthome.model.script.engine.ScriptEngine) ThingRegistry(org.eclipse.smarthome.core.thing.ThingRegistry)

Aggregations

ItemRegistry (org.eclipse.smarthome.core.items.ItemRegistry)1 ThingRegistry (org.eclipse.smarthome.core.thing.ThingRegistry)1 ModelRepository (org.eclipse.smarthome.model.core.ModelRepository)1 IActionServiceProvider (org.eclipse.smarthome.model.script.engine.IActionServiceProvider)1 ScriptEngine (org.eclipse.smarthome.model.script.engine.ScriptEngine)1 ServiceTrackerActionServiceProvider (org.eclipse.smarthome.model.script.internal.engine.ServiceTrackerActionServiceProvider)1 Script (org.eclipse.smarthome.model.script.script.Script)1