Class UpgradeConfigService

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @Component
    public class UpgradeConfigService
    extends Object
    implements org.springframework.beans.factory.InitializingBean
    Checks for config upgrades and executes them at startup of OpenNMS. Runs at every start of the application. Uses liquibase as underlying technology.
    • Constructor Detail

      • UpgradeConfigService

        @Inject
        public UpgradeConfigService​(ConfigurationManagerService cm,
                                    DataSource dataSource,
                                    @Value("${skipConfigUpgrades:false}")
                                    boolean skipConfigUpgrades)
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception