Class AddonSuggestionService

java.lang.Object
org.openhab.core.config.discovery.addon.AddonSuggestionService
All Implemented Interfaces:
AutoCloseable

@NonNullByDefault public class AddonSuggestionService extends Object implements AutoCloseable
This is a AddonSuggestionService which discovers suggested add-ons for the user to install.
Author:
Andrew Fiddian-Green - Initial contribution, Mark Herwege - Install/remove finders
  • Field Details

  • Constructor Details

    • AddonSuggestionService

      public AddonSuggestionService(org.osgi.service.cm.ConfigurationAdmin configurationAdmin, LocaleProvider localeProvider, @Nullable Map<String,Object> config)
  • Method Details

    • deactivate

      protected void deactivate()
    • addAddonFinderService

      protected void addAddonFinderService(AddonFinderService addonFinderService)
    • removeAddonFinderService

      protected void removeAddonFinderService(AddonFinderService addonFinderService)
    • modified

      public void modified(@Nullable Map<String,Object> config)
    • addAddonInfoProvider

      public void addAddonInfoProvider(AddonInfoProvider addonInfoProvider)
    • removeAddonInfoProvider

      public void removeAddonInfoProvider(AddonInfoProvider addonInfoProvider)
    • addAddonFinder

      public void addAddonFinder(AddonFinder addonFinder)
    • removeAddonFinder

      public void removeAddonFinder(AddonFinder addonFinder)
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • getSuggestedAddons

      public Set<AddonInfo> getSuggestedAddons(@Nullable Locale locale)