Class AddonSuggestionService
java.lang.Object
org.openhab.core.config.discovery.addon.AddonSuggestionService
- All Implemented Interfaces:
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 Summary
-
Constructor Summary
ConstructorDescriptionAddonSuggestionService
(org.osgi.service.cm.ConfigurationAdmin configurationAdmin, LocaleProvider localeProvider, @Nullable Map<String, Object> config) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAddonFinder
(AddonFinder addonFinder) protected void
addAddonFinderService
(AddonFinderService addonFinderService) void
addAddonInfoProvider
(AddonInfoProvider addonInfoProvider) void
close()
protected void
getSuggestedAddons
(@Nullable Locale locale) void
void
removeAddonFinder
(AddonFinder addonFinder) protected void
removeAddonFinderService
(AddonFinderService addonFinderService) void
removeAddonInfoProvider
(AddonInfoProvider addonInfoProvider)
-
Field Details
-
SERVICE_NAME
- See Also:
-
CONFIG_PID
- See Also:
-
-
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
-
removeAddonFinderService
-
modified
-
addAddonInfoProvider
-
removeAddonInfoProvider
-
addAddonFinder
-
removeAddonFinder
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
getSuggestedAddons
-