public static class ConfigPropertyTranslater.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ConfigPropertyTranslater |
build() |
ConfigPropertyTranslater.Builder |
withPrefixTranslation(String deprecatedPrefix,
String newPrefix)
Add a prefix translation.
|
ConfigPropertyTranslater.Builder |
withTranslation(String deprecatedProperty,
String newProperty)
Add a property translation.
|
public ConfigPropertyTranslater.Builder withTranslation(String deprecatedProperty, String newProperty)
public ConfigPropertyTranslater.Builder withPrefixTranslation(String deprecatedPrefix, String newPrefix)
Any keys starting with deprecatedPrefix
will be translated into a new key with
newPrefix
substituted for deprecatedPrefix
.
Prefix translations are only checked in the absence of an exact match translations.
public ConfigPropertyTranslater build()