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=31460>.
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=31460

QueryLoader.loadQueries(path) should be protected

           Summary: QueryLoader.loadQueries(path) should be protected
           Product: Commons
           Version: 1.0 Final
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: DbUtils
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Those of us who don't want to use traditional java properties files to store 
properties have no way to 
utilize the QueryLoader (I am using XML, for instance, which can be parsed into a 
subclass of 
Properties if so desired).  It would be sufficient to make loadQueries()  protected 
instead of private, so I 
can overload that one method, but it would be nicer to be able to specify a class 
which adheres to some 
interface (contains load(InputStream is) would be sufficient), which will be 
instantiated by the 
QueryLoader for reading 'properties.'  Or alternatively, at least for my use, the 
ability to specify a 
Properties instance would also work.  Regardless, the absolute dependance on a 
traditional properties 
file is totally limiting for use of the class, and as soon as loadQueries() becomes 
protected, I can remove 
the duplicate source code from my code repository and just inherit from QueryLoader.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to