ConfigLocationFileStore

public class ConfigLocationFileStore

Used to read default platform config location(s) from config-location.properties and also to save in the file in the default location.

config-location.properties file will be loaded according to the behaviour of org.apache.commons.configuration.PropertiesConfiguration as specified here.

Fields

CONFIG_LOCATION_PROPERTY_KEY

public static final String CONFIG_LOCATION_PROPERTY_KEY

Constructors

ConfigLocationFileStore

public ConfigLocationFileStore(PropertiesConfiguration propertiesConfiguration)

Methods

add

public void add(String location)

Adds the given location to the store.

Parameters:
  • location – the location to be stored

getAll

public Iterable<ConfigLocation> getAll()

Returns all the configuration locations stored by this object.

Returns:the list of configuration locations