public interface ConfigReplacer
A Variable to be replaced within the configuration file has following form:
"$" PREFIX "{" MASKED_VALUE "}"where the
PREFIX
is the value returned by getPrefix()
method and MASKED_VALUE
is a value provided to
the getReplacement(String)
method. The result of getReplacement(String)
method call replaces the whole
Variable String.Modifier and Type | Method and Description |
---|---|
String |
getPrefix()
Variable replacer prefix string.
|
String |
getReplacement(String maskedValue)
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.
|
void init(Properties properties)
properties
- properties configured (not null
)String getPrefix()
String getReplacement(String maskedValue)
maskedValue
- 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 © 2018 Hazelcast, Inc.. All rights reserved.