Package org.openhab.core.tools
Class ExtractedAddonUpgrader
java.lang.Object
org.openhab.core.tools.ExtractedAddonUpgrader
- All Implemented Interfaces:
Upgrader
The
ExtractedAddonUpgrader checks if the parent addon was previously
installed, and if specific things exist, and if so installs the
corresponding addon.- Author:
- Cody Cutrer - Initial contribution
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanExecutes the upgrade process.abstract Stringabstract Stringabstract booleanthingTypeMatches(String thingTypeUID) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openhab.core.tools.Upgrader
getDescription, getName
-
Constructor Details
-
ExtractedAddonUpgrader
public ExtractedAddonUpgrader()
-
-
Method Details
-
getParentAddonName
-
getAddonName
-
thingTypeMatches
-
execute
Description copied from interface:UpgraderExecutes the upgrade process.- Specified by:
executein interfaceUpgrader- Parameters:
userdataPath- the OPENHAB_USERDATA directory for the upgrade, or a custom path given by the user as --userdata argumentconfPath- the OPENHAB_CONF directory for the upgrade, or a custom path given by the user as --conf argument- Returns:
- true if the upgrade was successful, false otherwise
-