Package org.openhab.core.thing.binding
Interface ThingHandlerService
- All Known Subinterfaces:
ThingActions
@NonNullByDefault
public interface ThingHandlerService
Interface for a service that provides access to a
ThingHandler
.- Author:
- Stefan Triller - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
activate()
Method that will be called if this service will be activateddefault void
Method that will be called if this service will be deactivated@Nullable ThingHandler
Gets the ThingHandler on which the actions (methods) should be calledvoid
setThingHandler
(ThingHandler handler) Sets the ThingHandler on which the actions (methods) should be called
-
Method Details
-
setThingHandler
Sets the ThingHandler on which the actions (methods) should be called- Parameters:
handler
- theThingHandler
-
getThingHandler
@Nullable ThingHandler getThingHandler()Gets the ThingHandler on which the actions (methods) should be called- Returns:
- the
ThingHandler
-
activate
default void activate()Method that will be called if this service will be activated -
deactivate
default void deactivate()Method that will be called if this service will be deactivated
-