Interface ProfileContext


@NonNullByDefault public interface ProfileContext
The profile's context It gives access to related information like the profile's configuration or a scheduler.
Author:
Simon Kaufmann - Initial contribution, Jan N. Klug - Add accepted type methods
  • Method Details

    • getConfiguration

      Configuration getConfiguration()
      Get the profile's configuration object
      Returns:
      the configuration
    • getExecutorService

      ScheduledExecutorService getExecutorService()
      Get a scheduler to be used within profiles (if needed at all)
      Returns:
      the scheduler
    • getAcceptedDataTypes

      default List<Class<? extends State>> getAcceptedDataTypes()
      Get the list of accepted data types for state updates to the linked item This is an optional method and will return an empty list if not implemented.
      Returns:
      A list of all accepted data types
    • getAcceptedCommandTypes

      default List<Class<? extends Command>> getAcceptedCommandTypes()
      Get the list of accepted command types for commands send to the linked item This is an optional method and will return an empty list if not implemented.
      Returns:
      A list of all accepted command types
    • getHandlerAcceptedCommandTypes

      default List<Class<? extends Command>> getHandlerAcceptedCommandTypes()
      Get the list of accepted command types for commands sent to the handler This is an optional method and will return an empty list if not implemented.
      Returns:
      A list of all accepted command types