Hello Felix,

I'd like to briefly respond to your first proposal, about abstracting from the filesystem. Personally I am intested in this, as we've already encountered a real-life situation where it would be very helpful if we could have more control over which files go where.

On Jun 20, 2006, at 9:56 , Felix Meschberger wrote:

Probably, it would also make sense to expose the resource factory as a
service for other bundles to be able to use it.

Agreed. Recently there has been some discussion of writing a "store" interface that would allow us to write multiple back-ends for standard OSGi services like User Admin, Preferences and Configuration Admin.

Of course, as a consequence of using a resource class instead of the
java.io.File class, the BundleContext.getDataFile(String) method might
return null, if the required bundle resource cannot be accessed in the
file system.

I haven't given this much thought yet, but is it possible to subclass File and implement it using a back-end store of some sort?

Greetings, Marcel

Reply via email to