Interface ThingHandlerService

  • All Known Subinterfaces:
    ThingActions

    public interface ThingHandlerService
    Interface for a service that provides access to a ThingHandler
    Author:
    Stefan Triller - Initial contribution
    • Method Detail

      • setThingHandler

        void setThingHandler​(ThingHandler handler)
        Sets the ThingHandler on which the actions (methods) should be called
        Parameters:
        handler - the ThingHandler
      • getThingHandler

        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