Class ConfigurationFile

  extended by com.atlassian.bamboo.configuration.ConfigurationFile

public final class ConfigurationFile
extends java.lang.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
static java.lang.String DEFAULT_CONFIG_FILE
Method Summary
static java.lang.String getConfigFileName()
          Which configuration file are we using.
static void setConfigurationFileName(java.lang.String fileName)
          Change the default configuration file.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public static final java.lang.String DEFAULT_CONFIG_FILE
See Also:
Constant Field Values
Method Detail


public static void setConfigurationFileName(java.lang.String fileName)
Change the default configuration file. Note, file must be in the classpath.

fileName - The file to use.


public static java.lang.String getConfigFileName()
Which configuration file are we using.

The name of the configuration file we want to use.

Copyright © 2011 Atlassian. All Rights Reserved.