Announcement Announcement Module
No announcement yet.
Injecting Properties Resolver Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Injecting Properties Resolver

    I've been trying to figure out how to inject a PropertiesResolver into a Spring context without having to define it in the xml document.

    I have an application server. Each application has a .properties file which I load and make accessible everywhere. I want to wrap my properties resolver with an interface compatible with Spring and insert the already-created object into Spring for use when resolving properties.

    This will simplify the configuration process as the name of the properties file may change at any time without a reference being updated in the xml.(because the name of the xml is also dynamic).

    Any ideas?