abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Calavera" <david.calav...@gmail.com>
Subject feed config file is not loaded from context
Date Mon, 18 Feb 2008 15:16:36 GMT
Hi, I've seen that the CollectionAdapterConfiguration class doesn't load the
config file from the class context. It creates a new FileInputStream instead
of get it from the context class loader. Can anyone explain me why this
class does that?

This is the current source code:

    return new FileInputStream(fileLocation);

I propose to change to this code:

   return Thread.currentThread
().getContextClassLoader().getResourceAsStream(fileLocation);

If there is no objection I'm going to submit a patch to jira.

Cheers

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message