title: REQ: Retrieving properties in my java app. collected by "PropertyPlaceholderConfigurer" -- properties are stored in a database as key/value
body: <p>PUsing Spring 3.2.0.release and JDK 1.6. I've a standalone Java program (NOT running inside tomcat etal) and I'm loading properties from a database.</p>
  
  <p>I've used this excellent article as a base and it works perfectly. Using the <code>PropertiesPrinter</code> bean (defined there) as a base and adding <code>getters</code> I can do stuff like <code>getFileLocation()</code>, <code>getPetDogsName()</code> but then I need to have/create <code>setter/getters</code> for every property. </p>
  
  <p>What I would like to have is a Spring Bean or normal Java class called DatabaseProperties with a method like <code>getProperty("filelocation")</code>; which I can use in my application (main)and so I can retrieve/get the value of the property filelocation which is somewhere inside the information collected by <code>PropertyPlaceholderConfigurer</code>. </p>
  
  <p>I've done a lot of digging but can't seem to find the information I need or at least I'm not able to combine the gathered info into a working program as I'm not fluent with Spring....</p>
  
  <p>Any hint/pointers/urls/code is higly appreciated. It's probably relative easy but it is still out of reach for me atm.  </p>