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 Type
    Method
    Description
    default void
    Method that will be called if this service will be activated
    default void
    Method that will be called if this service will be deactivated
    @Nullable ThingHandler
    Gets the ThingHandler on which the actions (methods) should be called
    void
    Sets the ThingHandler on which the actions (methods) should be called
  • Method Details

    • setThingHandler

      void setThingHandler(ThingHandler handler)
      Sets 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
    • 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