Class 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
      void addComponent​(java.lang.String component)  
      void addUpgrade​(com.xebialabs.deployit.server.api.upgrade.Upgrade upgrade)  
      void applyUpgrades()  
      void askForUpgrade()  
      void autoUpgrade()  
      java.util.Map<java.lang.String,​java.util.List<com.xebialabs.deployit.server.api.upgrade.Upgrade>> findUpgrades()  
      com.xebialabs.deployit.server.api.upgrade.Version getComponentVersion​(java.lang.String component)  
      protected java.lang.String read()  
      void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)  
      protected void updateVersion​(com.xebialabs.deployit.server.api.upgrade.Version version, java.util.List<com.xebialabs.deployit.server.api.upgrade.Upgrade> upgrades)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException