Class BaseDynamicCommandDescriptionProvider

    • Constructor Detail

      • BaseDynamicCommandDescriptionProvider

        public BaseDynamicCommandDescriptionProvider()
    • Method Detail

      • getCommandDescription

        public @Nullable CommandDescription getCommandDescription​(Channel channel,
                                                                  @Nullable CommandDescription originalCommandDescription,
                                                                  @Nullable Locale locale)
        Description copied from interface: DynamicCommandDescriptionProvider
        For a given channel UID, return a CommandDescription that should be used for the channel, instead of the one defined statically in the ChannelType. For a particular channel, there should be only one provider of the dynamic command description. When more than one description is provided for the same channel (by different providers), only one will be used, from the provider that registered first.
        Specified by:
        getCommandDescription in interface DynamicCommandDescriptionProvider
        channel - channel
        originalCommandDescription - original command description retrieved from the channel type this is the description to be replaced by the provided one
        locale - locale (can be null)
        command description or null if none provided
      • activate

        protected void activate​(org.osgi.service.component.ComponentContext componentContext)
      • deactivate

        public void deactivate()