Commit 510d610b authored by Andre Freyssinet's avatar Andre Freyssinet

Adds a method allowing to get a copy of configuration properties.

parent d0a26642
...@@ -31,6 +31,18 @@ public class Configuration { ...@@ -31,6 +31,18 @@ public class Configuration {
private static Properties properties = new Properties(System.getProperties()); private static Properties properties = new Properties(System.getProperties());
/**
* Returns a Properties object initialized with defaults specified from AgentServer
* configuration file and System properties.
*
* @return a Properties object initialized with specified defaults.
*/
public static Properties getProperties() {
// Do not return the original copy to avoid modification by external components.
// Returns an empty copy with the specified defaults.
return new Properties(properties);
}
/** /**
* Searches for the property with the specified key in the property list. * Searches for the property with the specified key in the property list.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment