public class EscapingPropertyPlaceholderHelper extends org.springframework.util.PropertyPlaceholderHelper
escapeString
from the maven-resources-plugin.
This allows you to place \
in front of placeholders you don't want replaced.
The string The sky over ${city} is \${color}
is resolved to The sky over Phoenix is ${color}
You can also have default values that are themselves placeholders - ${foo:${bar}}
Constructor and Description |
---|
EscapingPropertyPlaceholderHelper(String placeholderPrefix,
String placeholderSuffix) |
EscapingPropertyPlaceholderHelper(String placeholderPrefix,
String placeholderSuffix,
String valueSeparator,
String escapeString,
boolean ignoreUnresolvablePlaceholders) |
Modifier and Type | Method and Description |
---|---|
String |
getEscapeString() |
protected int |
getNewFromIndex(int fromIndex,
int pos,
String s) |
String |
getPlaceholderPrefix() |
String |
getPlaceholderSuffix() |
String |
getSimplePrefix() |
String |
getSkipString() |
protected int |
getStartIndex(String s,
String prefix,
String skipString,
int fromIndex) |
String |
getValueSeparator() |
boolean |
isIgnoreUnresolvablePlaceholders() |
protected String |
parseStringValue(String strVal,
org.springframework.util.PropertyPlaceholderHelper.PlaceholderResolver placeholderResolver,
Set<String> visitedPlaceholders) |
public EscapingPropertyPlaceholderHelper(String placeholderPrefix, String placeholderSuffix)
public EscapingPropertyPlaceholderHelper(String placeholderPrefix, String placeholderSuffix, String valueSeparator, String escapeString, boolean ignoreUnresolvablePlaceholders)
protected int getStartIndex(String s, String prefix, String skipString, int fromIndex)
protected int getNewFromIndex(int fromIndex, int pos, String s)
protected String parseStringValue(String strVal, org.springframework.util.PropertyPlaceholderHelper.PlaceholderResolver placeholderResolver, Set<String> visitedPlaceholders)
parseStringValue
in class org.springframework.util.PropertyPlaceholderHelper
public String getPlaceholderPrefix()
public String getPlaceholderSuffix()
public String getValueSeparator()
public boolean isIgnoreUnresolvablePlaceholders()
public String getSimplePrefix()
public String getEscapeString()
public String getSkipString()
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.