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