KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In my Spring xml configuration I'm trying to get something like this to work: <beans> <import resource="${file.to.import}" /> <!-- Other bean definitions --> </beans> I want to decide which file to import based on a property in a properties file. I know that I can use a System property, but I can't add a property to the JVM at startup. Note: The PropertyPlaceHolderConfigurer will not work. Imports are resolved before any BeanFactoryPostProcessors are run. The import element can only resolve System.properties. Does anyone have a simple solution to this? I don't want to start subclassing framework classes and so on... Thanks
Tags (comma-separated)
Save Edits
Cancel