public interface PropertyPlaceholderResolver
| Modifier and Type | Method and Description | 
|---|---|
default java.lang.String | 
getPrefix()  | 
java.util.Optional<java.lang.String> | 
resolvePlaceholders(java.lang.String str)
Resolve the placeholders and return an Optional String if it was possible to resolve them. 
 | 
default <T> T | 
resolveRequiredPlaceholder(java.lang.String str,
                          java.lang.Class<T> type)
Resolves the value of a single placeholder. 
 | 
default java.lang.String | 
resolveRequiredPlaceholders(java.lang.String str)
Resolve the placeholders and return an Optional String if it was possible to resolve them. 
 | 
java.util.Optional<java.lang.String> resolvePlaceholders(java.lang.String str)
str - The placeholder to resolveOptional.empty() if resolution was not possible@NonNull default java.lang.String getPrefix()
@NonNull default java.lang.String resolveRequiredPlaceholders(java.lang.String str) throws ConfigurationException
str - The placeholder to resolveOptional.empty() if resolution was not possibleConfigurationException - If the placeholders could not be resolved@NonNull default <T> T resolveRequiredPlaceholder(java.lang.String str, java.lang.Class<T> type) throws ConfigurationException
T - The type the value should be converted tostr - The string containing the placeholdertype - The class of the typeConfigurationException - If multiple placeholders are found or
 if the placeholder could not be converted to the requested type