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 voidactivate()Method that will be called if this service will be activateddefault voidMethod that will be called if this service will be deactivated@Nullable ThingHandlerGets the ThingHandler on which the actions (methods) should be calledvoidsetThingHandler(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
-