Class BambooApplicationConfig

java.lang.Object
com.atlassian.config.internal.ApplicationConfig
com.atlassian.bamboo.setup.BambooApplicationConfig
All Implemented Interfaces:
com.atlassian.config.ApplicationConfiguration

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

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Gets the property and then, if a string, the attempt to replace BambooSetupConstants.BAMBOO_HOME_CONSTANT with the ApplicationConfig.getApplicationHome()
    @Nullable String
    Returns the build number that Bamboo was on before any upgrade tasks have ran.
    void
     

    Methods inherited from class com.atlassian.config.internal.ApplicationConfig

    configFileExists, getApplicationHome, getApplicationVersion, getBooleanProperty, getBuildNumber, getConfigurationFileName, getCurrentSetupStep, getIntegerProperty, getMajorVersion, getMinorVersion, getProperties, getSetupType, isApplicationHomeValid, isSetupComplete, removeProperty, reset, save, setApplicationHome, setBuildNumber, setConfigurationFileName, setConfigurationPersister, setCurrentSetupStep, setInitialProperties, setMajorVersion, setMinorVersion, setProperty, setProperty, setProperty, setSetupComplete, setSetupType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BambooApplicationConfig

      public BambooApplicationConfig()
  • Method Details

    • 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.internal.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.internal.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.internal.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.