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 Object implements org.springframework.context.ApplicationContextAware
  • Constructor Details

    • Upgrader

      public Upgrader(UpgradeStrategy upgradeStrategy, boolean forceUpgrades, com.xebialabs.xlplatform.upgrade.RepositoryVersionService repositoryVersionService)
  • Method Details

    • addComponent

      public void addComponent(String component)
    • 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

      public com.xebialabs.deployit.server.api.upgrade.Version getComponentVersion(String component)
    • 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

      public Map<String,List<com.xebialabs.deployit.server.api.upgrade.Upgrade>> findUpgrades()
    • read

      protected String read()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException