commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josef Holy <>
Subject [configuration] Getting Properties from the Configuration
Date Tue, 23 Aug 2005 17:50:17 GMT

I have the Configuration, loaded from the .properties file (so it is
actually the instanceof PropertiesConfiguration class). I need to
configure my log4j engine by calling the
PropertyConfigurator.configure(java.util.Properties) method. These
properties for the log4j are the subset of properties loaded
previously into the Configuration instance.

Is there any way how to get the java.util.Properties instance from the
Configuration? There are methods in the AbstractConfiguration class -
subset(prefix) and getProperties(key), but none of them fits my need.

 So my log4j properties seem to be locked in the Configuration and I
can't get them out of it all at once. Or am I wrong?

Thanks for any ideas or responses.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message