|
An EagerPropertyPlaceholderConfigurer coud provide the required function. Please see the related issue:
http://opensource.atlassian.com/projects/spring/browse/SPR-1076 Any chance of reviving this issue with the EagerPropertyPlaceholderConfigurer? Imports based on property file settings would be a nice and familiar way to configure "sub-contexts" for different environments. I generally try to avoid global system properties in favor of containable properties files. It would be nice to consolidate the environment definition into one place, including when different context configurations are required.
A basic use case for justification purposes is that in my development environment I use SimpleTriggerBean to fire Quartz jobs immediately, but in QA and various production environments I use different CronTriggerBean configurations. I'd also imagine SpringIDE could be made to load and resolve the properties when doing imports during bean validation, which would be a nice feature as well. |
||||||||||||||||||||||||||||||||||||||||||||||||||
Juergen