You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/03/17 10:17:35 UTC

DO NOT REPLY [Bug 27730] New: - ConfigurationFactory's Digester Rules don't allow overriding Configuration class

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