title: Import Spring config file based on property in .properties file
body: <p>In my Spring xml configuration I'm trying to get something like this to work:</p>
  
  <pre><code>&lt;beans&gt;
  
     &lt;import resource="${file.to.import}" /&gt;
  
     &lt;!-- Other bean definitions --&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>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.</p>
  
  <p>Note: The PropertyPlaceHolderConfigurer will <em>not</em> work. Imports are resolved before any BeanFactoryPostProcessors are run. The import element can only resolve System.properties.</p>
  
  <p>Does anyone have a simple solution to this? I don't want to start subclassing framework classes and so on...</p>
  
  <p>Thanks</p>