-
Jul 13th, 2006, 09:25 AM
#1
How to replace placeholders in entire properties file ?
Hi,
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 ?
cheers,
Owen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules