Package com.atlassian.bamboo.setup
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 -
Method Summary
Modifier and TypeMethodDescriptiongetPropertiesWithPrefix(String prefix) getProperty(Object key) Gets the property and then, if a string, the attempt to replaceBambooSetupConstants.BAMBOO_HOME_CONSTANTwith theApplicationConfig.getApplicationHome()@Nullable StringReturns the build number that Bamboo was on before any upgrade tasks have ran.voidload()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
-
Constructor Details
-
BambooApplicationConfig
public BambooApplicationConfig()
-
-
Method Details
-
getProperty
Gets the property and then, if a string, the attempt to replaceBambooSetupConstants.BAMBOO_HOME_CONSTANTwith theApplicationConfig.getApplicationHome()- Specified by:
getPropertyin interfacecom.atlassian.config.ApplicationConfiguration- Overrides:
getPropertyin classcom.atlassian.config.internal.ApplicationConfig- Parameters:
key-- Returns:
-
getPropertiesWithPrefix
- Specified by:
getPropertiesWithPrefixin interfacecom.atlassian.config.ApplicationConfiguration- Overrides:
getPropertiesWithPrefixin classcom.atlassian.config.internal.ApplicationConfig
-
load
public void load() throws com.atlassian.config.ConfigurationException- Specified by:
loadin interfacecom.atlassian.config.ApplicationConfiguration- Overrides:
loadin classcom.atlassian.config.internal.ApplicationConfig- Throws:
com.atlassian.config.ConfigurationException
-
getStartupBuildNumber
Returns the build number that Bamboo was on before any upgrade tasks have ran. Will be null if data import is used.
-