org.kuali.spring.util
Class PropertiesResolver
java.lang.Object
org.kuali.spring.util.PlaceholderStringResolver
org.kuali.spring.util.PropertiesResolver
public class PropertiesResolver
- extends PlaceholderStringResolver
Methods inherited from class org.kuali.spring.util.PlaceholderStringResolver |
circularReferenceCheck, findPlaceholderEndIndex, getDefaultValue, getPlaceholder, getPlaceholderPrefix, getPlaceholderSuffix, getPlogger, getRawValue, getSimplePrefix, getTrimmedText, getValue, getValueSeparator, handleUnresolvedPlaceholder, haveArrivedAtPrefix, haveArrivedAtSuffix, isEmpty, isIgnoreUnresolvablePlaceholders, parse, resolve, resolve, resolvePlaceholder, resolvePlaceholderString, setIgnoreUnresolvablePlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setPlogger, setSimplePrefix, setValueSeparator, updateBuffer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final org.slf4j.Logger logger
DEFAULT_IS_SORT
public static final boolean DEFAULT_IS_SORT
- See Also:
- Constant Field Values
sort
boolean sort
PropertiesResolver
public PropertiesResolver()
resolve
public Properties resolve(Properties properties)
- Resolve any placeholders in the Properties object passed in
resolve
public Properties resolve(Properties properties,
ValueRetriever retriever)
- Resolve any placeholders in the Properties object passed in, using the ValueRetriever passed in to locate
replacement values for placeholder text
resolveProperty
protected void resolveProperty(PropertiesResolver.ResolvePropertyContext ctx)
duplicatePropertyCheck
protected void duplicatePropertyCheck(PropertiesResolver.ResolvePropertyContext ctx,
String resolvedKey,
String resolvedValue)
- A duplicate property can occur when resolving placeholders inside a key.
For example, given a properties file with the following entries:
cat=lion
lion.speed=fast
${cat}.speed=slow
The key ${cat}.speed will resolve to 'lion.speed' which duplicates the original entry in the properties file
isSort
public boolean isSort()
setSort
public void setSort(boolean sort)
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.