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

[configuration] Load file configurations from the classpath





------- Additional Comments From [EMAIL PROTECTED]  2004-05-18 06:28 -------
ConfigurationFactory provides means to specify a base path or URL from which
configuration files are loaded. Refer to the API doc of the setBasePath()
method. If this method was not called, the location of the configuration factory
XML file is used as base path. Relative URLs specified in the XML file are
resolved using this base path. It is also possible to specify absolute URLs for
the configuration files to load.

Loading configuration files from the class path is not yet supported and I agree
that this is a useful feature. As Emmanuel pointed out loading of the
configuration files is done by instantiating a Configuration object of the right
type and invoking its load() method.

With the actual design I think it won't be easy to implement loading from class
path as an additional and optional feature. For the long run I would suggest a
more sophisticated mechanism for locating configuration files, e.g. a couple of
ConfigurationLocator classes that know how to find a configuration file in the
class path, at a specified URL, in the user's home directory, relative to
another location etc. And I still propose to separate the loading of
configuration objects from the objects itself by introducing a hierarchy of
ConfigurationLoader classes.

Oliver

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

Reply via email to