Hi Petar, Am 06.05.2014 15:45, schrieb Petar Tahchiev: > Hi Gary, > > actually I found this: > > final Properties props = > ConfigurationConverter.getProperties(configuration); > > which does the job.
I also would have pointed you to this method, but was not 100% sure what you meant. My first thought was that you mean something like the values() method from the Map interface. This does not exist in Configuration, and I can hardly imagine a use case where you need all property values without the associated keys. But good to know that your use case is supported. Oliver > > > > 2014-05-06 16:21 GMT+03:00 Gary Gregory <garydgreg...@gmail.com>: > >> Hi Petar, good to see you here. >> >> Feel free to provide a patch to move the ball forward. The next question >> would be should the returned object be a safe copy or should changes in the >> object be reflected in the config? >> >> Gary >> >> >> On Tue, May 6, 2014 at 7:45 AM, Petar Tahchiev <paranoia...@gmail.com >>> wrote: >> >>> Hi guys, >>> >>> I'm looking at the API and I can't seem to find a method that returns all >>> the Properties in a Configuration object. I know I can access the keys >> and >>> then iterate and get the property with that key, but is there any method >>> like getAllProperties? If not is there any reason not to add one? >>> >>> -- >>> Regards, Petar! >>> Karlovo, Bulgaria. >>> --- >>> Public PGP Key at: >>> >> https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611 >>> Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611 >>> >> >> >> >> -- >> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org >> Java Persistence with Hibernate, Second Edition< >> http://www.manning.com/bauer3/> >> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> >> Spring Batch in Action <http://www.manning.com/templier/> >> Blog: http://garygregory.wordpress.com >> Home: http://garygregory.com/ >> Tweet! http://twitter.com/GaryGregory >> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org