|
From: Thomas R. <tho...@tr...> - 2007-07-12 14:59:29
|
Rob, If you don't want this to get lost - consider creating a JIRA issue: http://opensource.atlassian.com/projects/spring/secure/Dashboard.jspa Cheers, Thomas Rob Butler wrote: > 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 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > |