Package org.craftercms.commons.upgrade
Interface UpgradeManager<T>
- Type Parameters:
T
- The target type supported
- All Known Implementing Classes:
AbstractUpgradeManager
public interface UpgradeManager<T>
Manages the current version and applies the required upgrades
- Since:
- 3.1.5
- Author:
- joseross
-
Method Summary
-
Method Details
-
upgrade
Executes all required upgrades for the system- Throws:
UpgradeException
- if any of the upgrades fails
-
upgrade
Executes all required upgrades for the given target- Parameters:
target
- the target- Throws:
UpgradeException
- if any of the upgrades fails
-
getTargets
Returns all targets to be upgraded- Returns:
- the list of targets
- Throws:
UpgradeException
- if there is any error finding the targets
-