Class ConfigurationFile
- java.lang.Object
-
- com.atlassian.bamboo.configuration.ConfigurationFile
-
public final class ConfigurationFile extends Object
This class is a singleton (Yuck) used to switch configuration files around.Can't simply pass this into a construtor as system can be run an acceptance test as well from within a web server (in which case we have not got access to the object being created!).
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_CONFIG_FILE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getConfigFileName()
Which configuration file are we using.static void
setConfigurationFileName(String fileName)
Change the default configuration file.
-
-
-
Field Detail
-
DEFAULT_CONFIG_FILE
public static final String DEFAULT_CONFIG_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setConfigurationFileName
public static void setConfigurationFileName(String fileName)
Change the default configuration file. Note, file must be in the classpath.- Parameters:
fileName
- The file to use.
-
getConfigFileName
public static String getConfigFileName()
Which configuration file are we using.- Returns:
- The name of the configuration file we want to use.
-
-