org.kuali.spring.util
Class PropertiesConverter
java.lang.Object
org.kuali.spring.util.PropertiesConverter
public class PropertiesConverter
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
final org.slf4j.Logger logger
DEFAULT_IS_SORT
public static final boolean DEFAULT_IS_SORT
- See Also:
- Constant Field Values
sort
boolean sort
plogger
PropertyLogger plogger
PropertiesConverter
public PropertiesConverter()
convert
public void convert(Properties properties)
- Perform any conversion on the supplied Properties as needed.
The default implementation invokes convert(String,String)
for each property value and replaces the
original with the converted value if the converted value is different
- Parameters:
properties
- the Properties to convert
convert
protected String convert(String propertyName,
String propertyValue)
- Convert the given property from the properties source to the value which should be used.
The default implementation calls convert(String)
.
- Parameters:
propertyName
- the name of the propertypropertyValue
- the original value from the properties source
- Returns:
- the converted value, to be used for processing
- See Also:
convert(String)
convert
protected String convert(String originalValue)
- Convert the given property value from the properties source to the value which should be used.
The default implementation simply returns the original value. Can be overridden in subclasses, for example to
detect encrypted values and decrypt them accordingly.
- Parameters:
originalValue
- the original value from the properties source
- Returns:
- the converted value, to be used for processing
- See Also:
convert(String, String)
isSort
public boolean isSort()
setSort
public void setSort(boolean sort)
getPlogger
public PropertyLogger getPlogger()
setPlogger
public void setPlogger(PropertyLogger plogger)
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.