Jul 13th, 2006, 09:25 AM
How to replace placeholders in entire properties file ?
I have a normal PropertyPlaceholderConfigurer.
I'd love to be able to call PropertyPlaceholderConfigurer.getProperties() and
have it return the entire set of keys, as if it were java.util.Properties.
Is there any way of doing this ?
If I had a static set of properties in my "TestSpring.properties" file, then I could
just individually inject them into various object.
But the user will be able to add arbitrary keys into TestSpring.properties.
So I need to enumerate all keys in the property file, and get Spring to
replace the placeholders.
Any ideas ?