You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Trevor Miller <ub...@gmail.com> on 2006/07/31 09:15:11 UTC

[configuration] Converting between Configuration and Properties

Hi All,

Is there an easy way to convert between
org.apache.commons.configuration.Configuration and
java.util.Properties.

Some systems, like log4j need a properties object while others like
torque use a configuration object. I tried to create
JavaPropertiesConfiguration which extends Properties and implements
Configuration but that doesn't work since the getProperty method
signatures in Configuration and Properties are different and thus
conflict.

I think one might have to write wrappers, has this been done?

Any help would be greatly appreciated.

Kind Regards,
Trevor

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org