Hello all,
I'd like a minor enhancement to org.springframework.beans.propertyeditors.StringArrayPropertyEditor.
Please add support for null properties similar to StringTrimmerEditor(true) so empty strings will result in null instead of an empty array.
This will make it possible to have empty property values in a property
file pass null to setters instead of an empty array. This is necessary
when using some third code because an empty array is
handled differently from a null array. For example, Mina's
SSLContextFactoryBean allows you to set a String[] of enabled cipher
suites. A null String[] results in using the default cipher suites,
where an empty String[] results in no cipher suites being enabled.
While making this modification it might be nice to add support for charsToDelete, just like StringTrimmerEditor has. This would allow line-breaks between long sequences of values.
If three constructors were used in StringArrayPropertyEditor backwards compatibility would be maintained.
public StringArrayPropertyEditor(){..} // maintains backwards compatibility
public StringArrayPropertyEditor(boolean emptyAsNull){..}
public StringArrayPropertyEditor(String charsToDelete, boolean emptyAsNull){..}
Thanks
Rob
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545433
|