commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27730] New: - ConfigurationFactory's Digester Rules don't allow overriding Configuration class
Date Wed, 17 Mar 2004 09:17:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27730>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27730

ConfigurationFactory's Digester Rules don't allow overriding Configuration class

           Summary: ConfigurationFactory's Digester Rules don't allow
                    overriding Configuration class
           Product: Commons
           Version: Nightly Builds
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Configuration
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: jochen.toppe@coremedia.com


Try 
  <configuration>
  <properties className="ForgivingPropertiesConfiguration" 
     fileName="/etc/my.properties"/>
   ...
   </configuration>

The class ForgivingPropertiesConfiguration is never loaded but
PropertiesConfiguration is instead. The reason lies in
ConfigurationFactory$BasePathConfigurationFactory which doesn't check the
attributes but only instantiates the default class.

This worked in nightly 20040326

Cheers..

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


Mime
View raw message