com.atlassian.bamboo.setup
Class BambooApplicationConfig

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

public class BambooApplicationConfig
extends com.atlassian.config.ApplicationConfig

A ApplicationConfiguration implemntation that replaces ${bambooHome} variables in getProperty and getPropertiesWithPrefix


Field Summary
 
Fields inherited from class com.atlassian.config.ApplicationConfig
configurationPersister, DEFAULT_APPLICATION_HOME, DEFAULT_CONFIG_FILE_NAME, NULL_BOOLEAN_VALUE, NULL_INTEGER_VALUE
 
Constructor Summary
BambooApplicationConfig()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getPropertiesWithPrefix(java.lang.String prefix)
           
 java.lang.Object getProperty(java.lang.Object key)
          Gets the property and then, if a string, the attempt to replace BambooSetupConstants.BAMBOO_HOME_CONSTANT with the ApplicationConfig.getApplicationHome()
 
Methods inherited from class com.atlassian.config.ApplicationConfig
configFileExists, getApplicationHome, getApplicationVersion, getBooleanProperty, getBuildNumber, getConfigurationFileName, getCurrentSetupStep, getIntegerProperty, getMajorVersion, getMinorVersion, getProperties, getSetupType, isApplicationHomeValid, isSetupComplete, load, 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 Detail

BambooApplicationConfig

public BambooApplicationConfig()
Method Detail

getProperty

public java.lang.Object getProperty(java.lang.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.ApplicationConfig
Parameters:
key -
Returns:

getPropertiesWithPrefix

public java.util.Map<java.lang.String,java.lang.Object> getPropertiesWithPrefix(java.lang.String prefix)
Specified by:
getPropertiesWithPrefix in interface com.atlassian.config.ApplicationConfiguration
Overrides:
getPropertiesWithPrefix in class com.atlassian.config.ApplicationConfig


Copyright © 2012 Atlassian. All Rights Reserved.