Hmm, depents on the point of view. No the returned URL is always consistent with the base path and file name.

As a compromise: How about storing the URL of the last successfull load() operation and add a method like getCurrentURL() or something that returns this URL?

Oliver

Emmanuel Bourg wrote:

Argh my URL, I would have prefered to keep it :(

> /**
> * Return the URL where the configuration is stored.
> + *
> + * @return the configuration's location as URL
> */
> public URL getURL()
> {
> - return url;
> + return ConfigurationUtils.locate(getBasePath(), getFileName());
> }


I'm not sure it's a good thing to locate the ressource on every call to getURL, that means the URL returned may not match the actual URL used to load the configuration (if the file is removed for example).

Emmanuel Bourg



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



Reply via email to