I'm considering using Spring to assemble the components of my application, but I've got a problem. Our application uses a configuration repository that is global to the VM, and is similar (but not precisely) to the system properties.
This configuration API is accessed like so:
Configuration.getDb ().get ("some_property_name")
Is there any way to use values from this global configuration in Spring xml bean files? getDb
may return a different value depending on the current state of the configuration library (it has context), but I'm willing to make the statement that the Spring configuration will be fully-loaded at application context initialization time. Still, something more flexible would be fantastic.
Given that I'm a Spring newbie, code examples would make my life a great deal easier.