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
public class Upgrader extends java.lang.Object implements org.springframework.context.ApplicationContextAware
-
-
Constructor Summary
Constructors Constructor Description Upgrader(UpgradeStrategy upgradeStrategy, boolean forceUpgrades, com.xebialabs.xlplatform.upgrade.RepositoryVersionService repositoryVersionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComponent(java.lang.String component)voidaddUpgrade(com.xebialabs.deployit.server.api.upgrade.Upgrade upgrade)voidapplyUpgrades()voidaskForUpgrade()voidautoUpgrade()java.util.Map<java.lang.String,java.util.List<com.xebialabs.deployit.server.api.upgrade.Upgrade>>findUpgrades()com.xebialabs.deployit.server.api.upgrade.VersiongetComponentVersion(java.lang.String component)protected java.lang.Stringread()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)protected voidupdateVersion(com.xebialabs.deployit.server.api.upgrade.Version version, java.util.List<com.xebialabs.deployit.server.api.upgrade.Upgrade> upgrades)
-
-
-
Constructor Detail
-
Upgrader
public Upgrader(UpgradeStrategy upgradeStrategy, boolean forceUpgrades, com.xebialabs.xlplatform.upgrade.RepositoryVersionService repositoryVersionService)
-
-
Method Detail
-
addComponent
public void addComponent(java.lang.String component)
-
addUpgrade
public void addUpgrade(com.xebialabs.deployit.server.api.upgrade.Upgrade upgrade)
-
applyUpgrades
public void applyUpgrades()
-
autoUpgrade
public void autoUpgrade()
-
getComponentVersion
public com.xebialabs.deployit.server.api.upgrade.Version getComponentVersion(java.lang.String component)
-
askForUpgrade
public void askForUpgrade()
-
updateVersion
protected void updateVersion(com.xebialabs.deployit.server.api.upgrade.Version version, java.util.List<com.xebialabs.deployit.server.api.upgrade.Upgrade> upgrades)
-
findUpgrades
public java.util.Map<java.lang.String,java.util.List<com.xebialabs.deployit.server.api.upgrade.Upgrade>> findUpgrades()
-
read
protected java.lang.String 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
-
-