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 SummaryModifier 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- 
setThingHandlerSets the ThingHandler on which the actions (methods) should be called- Parameters:
- handler- the- ThingHandler
 
- 
getThingHandler@Nullable ThingHandler getThingHandler()Gets the ThingHandler on which the actions (methods) should be called- Returns:
- the ThingHandler
 
- 
activatedefault void activate()Method that will be called if this service will be activated
- 
deactivatedefault void deactivate()Method that will be called if this service will be deactivated
 
-