Package org.craftercms.commons.upgrade
Interface UpgradeOperation<T>
- Type Parameters:
T- The target type supported
- All Known Implementing Classes:
AbstractUpgradeOperation,UpdateVersionUpgradeOperation
public interface UpgradeOperation<T>
Defines the basic operations for a single upgrade
- Since:
- 3.1.5
- Author:
- joseross
-
Method Summary
-
Method Details
-
init
void init(String currentVersion, String nextVersion, org.apache.commons.configuration2.HierarchicalConfiguration<?> config) throws ConfigurationException Initializes the instance with the given configuration- Parameters:
currentVersion- the current versionnextVersion- the next versionconfig- the operation configuration- Throws:
ConfigurationException
-
execute
Performs a single upgrade operation.- Parameters:
context- the upgrade context- Throws:
UpgradeException- if there is any error performing the upgrade
-