james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Burrell Donkin" <robertburrelldon...@gmail.com>
Subject Re: [jira] Commented: (JAMES-803) Add ability to load resources from the classpath instead of the file system
Date Fri, 10 Aug 2007 16:53:06 GMT
On 8/10/07, Stefano Bagnara (JIRA) <server-dev@james.apache.org> wrote:
>     [ https://issues.apache.org/jira/browse/JAMES-803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518996
> Stefano Bagnara commented on JAMES-803:
> ---------------------------------------
> I wrote the FileSystem service to encapsulate the service and remove some avalon specific
dependency from most modules.
> I think the best approach to this change would be:
> 1) Add the getResource method to the interface that simply return an InputStream instead
of a file.
> 2) Create the default implementation of the avalon file system to call the getFile and
simply provide the stream for that file
> 3) Change the FileSystem users to use getResouce instead of getFile when they don't need
a File instance.
> Then I would probably leave to the spring implementation the loading of resources from
the classpath: in a phoenix environment IMHO it make sense to keep using the "phoenix way".
> So, this is similar, but done in 2 separate steps (refactoring of the api first, new
features after): what do you think?


- robert

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message