Class BambooApplicationConfig

  • All Implemented Interfaces:
    com.atlassian.config.ApplicationConfiguration

    public class BambooApplicationConfig
    extends com.atlassian.config.ApplicationConfig
    A ApplicationConfiguration implementation that replaces ${bambooHome} variables in getProperty and getPropertiesWithPrefix
    • Field Summary

      • Fields inherited from class com.atlassian.config.ApplicationConfig

        configurationPersister, DEFAULT_APPLICATION_HOME, DEFAULT_CONFIG_FILE_NAME, NULL_BOOLEAN_VALUE, NULL_INTEGER_VALUE
    • Constructor Detail

      • BambooApplicationConfig

        public BambooApplicationConfig()
    • Method Detail

      • getProperty

        public Object getProperty​(Object key)
        Gets the property and then, if a string, the attempt to replace BambooSetupConstants.BAMBOO_HOME_CONSTANT with the ApplicationConfig.getApplicationHome()
        Specified by:
        getProperty in interface com.atlassian.config.ApplicationConfiguration
        Overrides:
        getProperty in class com.atlassian.config.ApplicationConfig
        Parameters:
        key -
        Returns:
      • getPropertiesWithPrefix

        public Map<String,​Object> getPropertiesWithPrefix​(String prefix)
        Specified by:
        getPropertiesWithPrefix in interface com.atlassian.config.ApplicationConfiguration
        Overrides:
        getPropertiesWithPrefix in class com.atlassian.config.ApplicationConfig
      • load

        public void load()
                  throws com.atlassian.config.ConfigurationException
        Specified by:
        load in interface com.atlassian.config.ApplicationConfiguration
        Overrides:
        load in class com.atlassian.config.ApplicationConfig
        Throws:
        com.atlassian.config.ConfigurationException
      • getStartupBuildNumber

        @Nullable
        public @Nullable String getStartupBuildNumber()
        Returns the build number that Bamboo was on before any upgrade tasks have ran. Will be null if data import is used.