org.kuali.spring.util
Class PropertiesResolver

java.lang.Object
  extended by org.kuali.spring.util.PlaceholderStringResolver
      extended by org.kuali.spring.util.PropertiesResolver

public class PropertiesResolver
extends PlaceholderStringResolver


Nested Class Summary
protected  class PropertiesResolver.ResolvePropertyContext
           
 
Field Summary
static boolean DEFAULT_IS_SORT
           
private static org.slf4j.Logger logger
           
(package private)  boolean sort
           
 
Fields inherited from class org.kuali.spring.util.PlaceholderStringResolver
DEFAULT_IS_IGNORE_UNRESOLVABLE_PLACEHOLDERS, ignoreUnresolvablePlaceholders, placeholderPrefix, placeholderSuffix, plogger, simplePrefix, valueSeparator
 
Constructor Summary
PropertiesResolver()
           
 
Method Summary
protected  void duplicatePropertyCheck(PropertiesResolver.ResolvePropertyContext ctx, String resolvedKey, String resolvedValue)
          A duplicate property can occur when resolving placeholders inside a key.
 boolean isSort()
           
 Properties resolve(Properties properties)
          Resolve any placeholders in the Properties object passed in
 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
protected  void resolveProperty(PropertiesResolver.ResolvePropertyContext ctx)
           
 void setSort(boolean sort)
           
 
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
 

Field Detail

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
Constructor Detail

PropertiesResolver

public PropertiesResolver()
Method Detail

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.