Issue Details (XML | Word | Printable)

Key: SPR-3998
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Juergen Hoeller
Reporter: David J. M. Karlsen
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Spring Framework

Ability to load util:map, util:list, util:set from classpath

Created: 23/Oct/07 07:04 AM   Updated: 31/Jan/08 07:18 PM
Component/s: SpringCORE
Affects Version/s: 2.0.7
Fix Version/s: None

Time Tracking:
Not Specified

Environment: N/A


 Description  « Hide
It would be really nice if it could be possible to load util:map's from the classpath with a location attribute like it's done for properties.

 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
David J. M. Karlsen added a comment - 31/Jan/08 05:45 PM
Any news on this?

Juergen Hoeller added a comment - 31/Jan/08 07:18 PM
How exactly would you like to load those collections from a file representation? I can only really imagine populating a plain Map from a properties file, but not really how this is supposed to work for lists and sets (with a standard format)... And ever for a Map, I'd rather build this into PropertiesFactoryBean (<util:properties>), since it's still building on the standard properties format.

Note that a Properties instance is automatically converted to a Map when injected into a bean property of type Map, so you could consider using the existing PropertiesFactoryBean for such purposes as well... Do you have a specific use case in mind here?

Juergen