public class DefaultPropertyPlaceholderResolver extends Object implements PropertyPlaceholderResolver
PropertyPlaceholderResolver.PropertyPlaceholderResolver.Placeholder| Modifier and Type | Field and Description | 
|---|---|
static String | 
PREFIX
Prefix for placeholder in properties. 
 | 
static String | 
SUFFIX
Suffix for placeholder in properties. 
 | 
| Constructor and Description | 
|---|
DefaultPropertyPlaceholderResolver(PropertyResolver environment)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getPrefix()  | 
Optional<String> | 
resolvePlaceholders(String str)
Resolve the placeholders and return an Optional String if it was possible to resolve them. 
 | 
protected boolean | 
resolveReplacement(StringBuilder builder,
                  String str,
                  String expr)
Resolves a replacement for the given expression. 
 | 
String | 
resolveRequiredPlaceholders(String str)
Resolve the placeholders and return an Optional String if it was possible to resolve them. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolvePropertyNamespublic static final String PREFIX
public static final String SUFFIX
public DefaultPropertyPlaceholderResolver(PropertyResolver environment)
environment - The property resolver for the environmentpublic String getPrefix()
getPrefix in interface PropertyPlaceholderResolverpublic Optional<String> resolvePlaceholders(String str)
PropertyPlaceholderResolverresolvePlaceholders in interface PropertyPlaceholderResolverstr - The placeholder to resolveOptional.empty() if resolution was not possiblepublic String resolveRequiredPlaceholders(String str) throws ConfigurationException
PropertyPlaceholderResolverresolveRequiredPlaceholders in interface PropertyPlaceholderResolverstr - The placeholder to resolveOptional.empty() if resolution was not possibleConfigurationException - If the placeholders could not be resolvedprotected boolean resolveReplacement(StringBuilder builder, String str, String expr)
builder - The builderstr - The full stringexpr - The current expression