The static method SpringSupport.getAttributeValueAsManagedList() returns a managed list of the contents of the element.
SpringSupport.getAttributeValueAsManagedList()
This means that
foo="%{bar} %{fred} Jim"
will eventually give us back a three element List<String> with the contents of whatever bar is, whatever fred is and "Jim".
List<String>
But consider if
bar= jim=Rod Ian
the result will be ["", "Rod Ian", "Jim], when a deployer might expect ["Rod", "Ian", "Jim] (although frankly they deserve what they get.)
["", "Rod Ian", "Jim]
["Rod", "Ian", "Jim]
I think that the answer is to push it all up into a factory and do a
StringSupport.stringToList(attribute.getValue(), XMLConstants.LIST_DELIMITERS);
In the getObject method.
getObject
I think
This can be started (added and used) in V3.4 and in V4 we can kill off the old method.
The static method
SpringSupport.getAttributeValueAsManagedList()
returns a managed list of the contents of the element.This means that
foo="%{bar} %{fred} Jim"
will eventually give us back a three element
List<String>
with the contents of whatever bar is, whatever fred is and "Jim".But consider if
bar= jim=Rod Ian
the result will be
["", "Rod Ian", "Jim]
, when a deployer might expect["Rod", "Ian", "Jim]
(although frankly they deserve what they get.)I think that the answer is to push it all up into a factory and do a
StringSupport.stringToList(attribute.getValue(), XMLConstants.LIST_DELIMITERS);
In the
getObject
method.I think
This can be started (added and used) in V3.4 and in V4 we can kill off the old method.