Place for beans related to metadata providers?

Brent Putman putmanb at georgetown.edu
Thu Dec 11 17:19:15 EST 2014


On 12/10/14 4:59 PM, Cantor, Scott wrote:
> On 12/10/14, 9:56 PM, "Brent Putman" <putmanb at georgetown.edu> wrote:
>
>
>> Also meant to say:  I personally didn't know this until I tried it, but
>> with the p-namespace in Spring, if you have a bean property which is
>> List<String>, you can just say:
>>
>>  p:algorithms="foo bar baz"
>>
>> and Spring parses the space-delimited list into a List.  Pretty helpful.
> That I didn't know, I thought it required SPeL. I have a number of those 
> scattered around we should simplify.


Scott checked me on this, turns out it doesn't actually work.  I
mistakenly believed it was, but what it actually does is convert the
String into a singleton List where the single value has the input value,
e.g. "foo bar baz".  Which itself is actually mildly surprising.  Sorry
for the noise.

Might be possible to make it work with a PropertyEditor or Converter,
but also probably not worth it...
 




More information about the dev mailing list