Package com.xebialabs.deployit.upgrade
Class Upgrader
java.lang.Object
com.xebialabs.deployit.upgrade.Upgrader
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
-
Constructor Summary
ConstructorsConstructorDescriptionUpgrader(UpgradeStrategy upgradeStrategy, boolean forceUpgrades, com.xebialabs.xlplatform.upgrade.RepositoryVersionService repositoryVersionService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(String component) voidaddUpgrade(com.xebialabs.deployit.server.api.upgrade.Upgrade upgrade) voidvoidapplyUpgrades(boolean verifyOnly) voidvoidvoidautoUpgrade(boolean verifyOnly) com.xebialabs.deployit.server.api.upgrade.VersiongetComponentVersion(String component) protected Stringread()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) protected voidupdateVersion(com.xebialabs.deployit.server.api.upgrade.Version version, List<com.xebialabs.deployit.server.api.upgrade.Upgrade> upgrades)
-
Constructor Details
-
Upgrader
public Upgrader(UpgradeStrategy upgradeStrategy, boolean forceUpgrades, com.xebialabs.xlplatform.upgrade.RepositoryVersionService repositoryVersionService)
-
-
Method Details
-
addComponent
-
addUpgrade
public void addUpgrade(com.xebialabs.deployit.server.api.upgrade.Upgrade upgrade) -
applyUpgrades
public void applyUpgrades() -
applyUpgrades
public void applyUpgrades(boolean verifyOnly) -
autoUpgrade
public void autoUpgrade() -
autoUpgrade
public void autoUpgrade(boolean verifyOnly) -
getComponentVersion
-
askForUpgrade
public void askForUpgrade() -
updateVersion
protected void updateVersion(com.xebialabs.deployit.server.api.upgrade.Version version, List<com.xebialabs.deployit.server.api.upgrade.Upgrade> upgrades) -
findUpgrades
-
read
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-