public interface PropertyPlaceholderResolver
Modifier and Type | Interface and Description |
---|---|
static interface |
PropertyPlaceholderResolver.Placeholder
A place holder definition.
|
Modifier and Type | Method and Description |
---|---|
default String |
getPrefix() |
Optional<String> |
resolvePlaceholders(String str)
Resolve the placeholders and return an Optional String if it was possible to resolve them.
|
default List<PropertyPlaceholderResolver.Placeholder> |
resolvePropertyNames(String str)
Resolves all the property names defined in the given place holder string.
|
default String |
resolveRequiredPlaceholders(String str)
Resolve the placeholders and return an Optional String if it was possible to resolve them.
|
Optional<String> resolvePlaceholders(String str)
str
- The placeholder to resolveOptional.empty()
if resolution was not possibledefault String getPrefix()
default String resolveRequiredPlaceholders(String str) throws ConfigurationException
str
- The placeholder to resolveOptional.empty()
if resolution was not possibleConfigurationException
- If the placeholders could not be resolveddefault List<PropertyPlaceholderResolver.Placeholder> resolvePropertyNames(String str)
str
- The string