title: Spring Convert Annotation Configuration to XML
body: <p>I have the following code snippet which I use to expose a <code>BridgePropertyPlaceholderConfigurer</code> Bean through Annotation Configuration:</p>
  
  <pre><code>    @Configuration
      public class SpringConfiguration {
  
          @Bean
          public static BridgePropertyPlaceholderConfigurer getProperties() {
  
              File conf = new File(new File(".").getAbsolutePath() + "/configuration.properties");
  
              BridgePropertyPlaceholderConfigurer configurer;
              configurer = new BridgePropertyPlaceholderConfigurer();
  
              Resource[] resources = {
                      new FileSystemResource(conf.getAbsolutePath())
              };
  
              configurer.setLocations(resources);
  
              return configurer;
          }
      }
  </code></pre>
  
  <p>So basically, I want to expose a properties file that is located in the same folder as the jar. Thats why I'm doing the crazy stuff with <code>File</code></p>
  
  <p>Is there anyway however which I could convert this into XML configuration?
  Something like:</p>
  
  <pre><code>    &lt;bean id="bridgePropertyPlaceholder" class="org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer"&gt;
          &lt;property name="location" value="#{new File('.')....}"/&gt;
      &lt;/bean&gt;
  </code></pre>