apurav chauhan wrote:Hmm,
Did you check the doc for PropertyPlaceholderConfigurer.
Did you tried injecting this bean in your class and see if it exposes any method to get the messages.
I am sure you could do that way.
I love this place!
I love this place!
I love this place!
.So do you use annotations at all
.You could set the properties file to be a MessageSource rather than using a PropertyPlaceholderConfigurer, as the name suggests you use the latter when you are wanting to use placeholders in your xml (Spring 2.5).
You just use a java.util.Properties instance (Would you still need the PropertyPlaceholderConfigurer?)
Use your placeholders to create a list bean and inject that:
yes, but i dont want to create 2 .properties file one for spring config and other for my standalone java application.
I love this place!
Don't get me started about those stupid light bulbs. |