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.ApplicationConfig
A 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)
Object
getProperty(Object key)
Gets the property and then, if a string, the attempt to replaceBambooSetupConstants.BAMBOO_HOME_CONSTANT
with theApplicationConfig.getApplicationHome()
@Nullable String
getStartupBuildNumber()
Returns the build number that Bamboo was on before any upgrade tasks have ran.void
load()
-
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_CONSTANT
with theApplicationConfig.getApplicationHome()
- Specified by:
getProperty
in interfacecom.atlassian.config.ApplicationConfiguration
- Overrides:
getProperty
in classcom.atlassian.config.ApplicationConfig
- Parameters:
key
-- Returns:
-
getPropertiesWithPrefix
public Map<String,Object> getPropertiesWithPrefix(String prefix)
- Specified by:
getPropertiesWithPrefix
in interfacecom.atlassian.config.ApplicationConfiguration
- Overrides:
getPropertiesWithPrefix
in classcom.atlassian.config.ApplicationConfig
-
load
public void load() throws com.atlassian.config.ConfigurationException
- Specified by:
load
in interfacecom.atlassian.config.ApplicationConfiguration
- Overrides:
load
in 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.
-
-