Announcement Announcement Module
Collapse
No announcement yet.
Use a MessageSource for Configuration Properties?? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Use a MessageSource for Configuration Properties??

    I have a number of property files in an application and Im planning to use a MessageSource to retrieve them in my application.

    Can anyone see any problems with using a MessageSource to manage all property files in an application whether they contain content strings, configuration or otherwise??

  • #2
    You should use MessageSource only for i18n purposes as it's for what it was designed in the first place. To load your external configuration, use PropertyPlaceholderConfigurer.

    Comment


    • #3
      Thanks for the thought Enrico.

      I have a couple of configuration properties that are used all over the application and I dont really want to inject them into every bean that might refer to them though.

      Im after something like Reloadable MessageSource but for configuration properties.

      Comment

      Working...
      X