public class PropertyReplacer extends Object implements ConfigReplacer
init(Properties)
method.
The implementation can be used for replacing System properties.Constructor and Description |
---|
PropertyReplacer() |
Modifier and Type | Method and Description |
---|---|
String |
getPrefix()
Variable replacer prefix string.
|
String |
getReplacement(String variable)
Provides String which should be used as a variable replacement for given masked value.
|
void |
init(Properties properties)
Initialization method called before first usage of the config replacer.
|
public void init(Properties properties)
ConfigReplacer
init
in interface ConfigReplacer
properties
- properties configured (not null
)public String getPrefix()
ConfigReplacer
getPrefix
in interface ConfigReplacer
public String getReplacement(String variable)
ConfigReplacer
getReplacement
in interface ConfigReplacer
variable
- the masked valuenull
String to be used as a replacement for the variable; or null when this replacer is not
able to handle the masked value.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.