Package com.atlassian.bamboo.setup
Class BambooApplicationConfig
- java.lang.Object
-
- com.atlassian.config.ApplicationConfig
-
- com.atlassian.bamboo.setup.BambooApplicationConfig
-
- All Implemented Interfaces:
com.atlassian.config.ApplicationConfiguration
public class BambooApplicationConfig extends com.atlassian.config.ApplicationConfigA ApplicationConfiguration implementation that replaces ${bambooHome} variables in getProperty and getPropertiesWithPrefix
-
-
Constructor Summary
Constructors Constructor Description BambooApplicationConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getPropertiesWithPrefix(String prefix)ObjectgetProperty(Object key)Gets the property and then, if a string, the attempt to replaceBambooSetupConstants.BAMBOO_HOME_CONSTANTwith theApplicationConfig.getApplicationHome()@Nullable StringgetStartupBuildNumber()Returns the build number that Bamboo was on before any upgrade tasks have ran.voidload()-
Methods inherited from class com.atlassian.config.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
-
-
-
-
Method Detail
-
getProperty
public Object getProperty(Object key)
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.ApplicationConfig- Parameters:
key-- Returns:
-
getPropertiesWithPrefix
public Map<String,Object> getPropertiesWithPrefix(String prefix)
- Specified by:
getPropertiesWithPrefixin interfacecom.atlassian.config.ApplicationConfiguration- Overrides:
getPropertiesWithPrefixin classcom.atlassian.config.ApplicationConfig
-
load
public void load() throws com.atlassian.config.ConfigurationException- Specified by:
loadin interfacecom.atlassian.config.ApplicationConfiguration- Overrides:
loadin classcom.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.
-
-