celix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Offermans <marcel.offerm...@luminis.nl>
Subject Re: some remarks and questions
Date Tue, 30 Aug 2011 21:57:23 GMT
On 30 Aug 2011, at 21:08 , Alexander Broekhuis wrote:

>> -------  I must admit that I don't know the difference between getEntry()
>> and getResource().  I need to look further into these API's.
> Following the OSGi spec, getResource looks in the bundle classpath, while
> getEntry only looks in the bundle itself. The difference being that with
> getResource one could end up with a resource from a different bundle (as it
> might be imported by the current bundle).
> Since Celix doesn't have a concept like bundle classpath, it is save to
> assume you have to use getEntry. Missing is the "getEntryPaths" function to
> get a list of entries.

You could also say that the bundle classpath in Celix is "everything in the current bundle"
which would make both methods equal (and perhaps it does not make too much sense implementing

Greetings, Marcel

View raw message