include the router's config in the property settings

This commit is contained in:
jrandom
2004-06-13 19:45:53 +00:00
committed by zzz
parent 9f1189e606
commit 3e66ea3f56

View File

@ -218,4 +218,29 @@ public class RouterContext extends I2PAppContext {
buf.append(_reliabilityCalc).append('\n');
return buf.toString();
}
/**
* Tie in the router's config as properties, as well as whatever the
* I2PAppContext says.
*
*/
public String getProperty(String propName) {
if (_router != null) {
String val = _router.getConfigSetting(propName);
if (val != null) return val;
}
return super.getProperty(propName);
}
/**
* Tie in the router's config as properties, as well as whatever the
* I2PAppContext says.
*
*/
public String getProperty(String propName, String defaultVal) {
if (_router != null) {
String val = _router.getConfigSetting(propName);
if (val != null) return val;
}
return super.getProperty(propName, defaultVal);
}
}