Skip to content

Commit

Permalink
add back API that was accidentally deleted in refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-mastrangelo committed Mar 31, 2020
1 parent 1c827ff commit 7bd3521
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,18 @@ public String getDefaultPropName(IClientConfigKey propName) {
return getDefaultPropName(propName.key());
}

public String getInstancePropName(String restClientName,
IClientConfigKey configKey) {
return getInstancePropName(restClientName, configKey.key());
}

public String getInstancePropName(String restClientName, String key) {
if (getNameSpace() == null) {
throw new NullPointerException("getNameSpace() may not be null");
}
return restClientName + "." + getNameSpace() + "." + key;
}

public DefaultClientConfigImpl withProperty(IClientConfigKey key, Object value) {
setProperty(key, value);
return this;
Expand Down

0 comments on commit 7bd3521

Please sign in to comment.