* I2PAppContext: New getProperties() method

* i2ptunnel:
      - Use context properties as defaults
This commit is contained in:
zzz
2011-01-03 14:26:22 +00:00
parent 378490886f
commit 1a3b0d3812
2 changed files with 17 additions and 2 deletions

View File

@ -483,6 +483,21 @@ public class I2PAppContext {
return names;
}
/**
* Access the configuration attributes of this context, listing the properties
* provided during the context construction, as well as the ones included in
* System.getProperties.
*
* @return new Properties with system and context properties
* @since 0.8.4
*/
public Properties getProperties() {
Properties rv = new Properties();
rv.putAll(System.getProperties());
rv.putAll(_overrideProps);
return rv;
}
/**
* The statistics component with which we can track various events
* over time.