Package org.openhab.core.model.script
Class ScriptServiceUtil
java.lang.Object
org.openhab.core.model.script.ScriptServiceUtil
Utility class for providing easy access to script services.
- Author:
- Davy Vanherbergen - Initial contribution, Kai Kreuzer - renamed and removed interface
-
Field Summary
-
Constructor Summary
ConstructorDescriptionScriptServiceUtil
(ItemRegistry itemRegistry, ThingRegistry thingRegistry, EventPublisher eventPublisher, ModelRepository modelRepository, Scheduler scheduler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActionService
(ActionService actionService) void
addThingActions
(ThingActions thingActions) void
static List<ActionService>
static EventPublisher
static ItemRegistry
static ModelRepository
static Scheduler
static ScriptEngine
static List<ThingActions>
void
removeActionService
(ActionService actionService) void
removeThingActions
(ThingActions thingActions) void
setScriptEngine
(ScriptEngine scriptEngine) void
unsetScriptEngine
(ScriptEngine scriptEngine)
-
Field Details
-
actionServices
-
thingActions
-
-
Constructor Details
-
ScriptServiceUtil
public ScriptServiceUtil(ItemRegistry itemRegistry, ThingRegistry thingRegistry, EventPublisher eventPublisher, ModelRepository modelRepository, Scheduler scheduler)
-
-
Method Details
-
deactivate
public void deactivate() -
getItemRegistry
-
getItemRegistryInstance
-
getThingRegistryInstance
-
getEventPublisher
-
getModelRepository
-
getModelRepositoryInstance
-
getScheduler
-
getSchedulerInstance
-
getScriptEngine
-
getActionServices
-
getThingActions
-
getActionServiceInstances
-
getThingActionsInstances
-
addActionService
-
removeActionService
-
addThingActions
-
removeThingActions
-
setScriptEngine
-
unsetScriptEngine
-