Package org.eclipse.persistence.config
Class PropertiesUtils
- java.lang.Object
-
- org.eclipse.persistence.config.PropertiesUtils
-
public class PropertiesUtils extends java.lang.Object
A static utility class that handles parsing a String "key=value,key1=value1...." and calls an appropriate set[key]([value]) method on the provided instance.
-
-
Constructor Summary
Constructors Constructor Description PropertiesUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
set
public 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. Note: Keys and values cannot contain '=' or ','- Parameters:
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,...- Throws:
ConversionException
- if unable to process the provided kvs
-
-