Fix assumption about file-based Resources in PropertiesLoaderSupport (SPR-7547)

When using PropertiesLoaderSupport implementations (principally
PropertyPlaceholderConfigurer), an assumption was made that any
Resource representing a set of properties must be file-based.  SPR-7547
exposed the fact that if a non-file-based Resource implementation such
as ByteArrayResource were passed in, an IllegalStateException would be thrown
from the AbstractResource base class' implementation of getFilename().

This is now patched, and PropertiesLoaderSupport implementations treat
Resource implementations equally, regardless of file-orientation.

See also SPR-7552.
This commit is contained in:
Chris Beams
2010-09-13 20:23:26 +00:00
parent 334a294e2a
commit 05bcc4028d
3 changed files with 54 additions and 1 deletions

View File

@@ -0,0 +1 @@
../images