public class PropertiesUtils
extends java.lang.Object
Constructor and Description |
---|
PropertiesUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
set(java.lang.Object instance,
java.lang.String propertyName,
java.lang.String kvs)
Attempts to parse and then set the provided kvs String into the
appropriate set method on the provided instance.
|
public static void set(java.lang.Object instance, java.lang.String propertyName, java.lang.String kvs)
instance
- An JavaBean instancepropertyName
- The configuration name that is being set into instance. This
is only used for informational purposes.kvs
- A String of key=value comma delimited ie: k1=v1,k2=v2,...ConversionException
- if unable to process the provided kvs