On 11/10/09 14:38, lukewpatterson wrote:

Stuart McCulloch wrote:
as the Bundle.findEntries() javadoc states:

    "This bundle's class loader is not used to search for entries"

so it won't look inside embedded jars - you'll need to use
Bundle.getResource() / getResources() for that

The part that was confusing me was "Only the contents of this bundle and its
attached fragments are searched for the specified entries.".  I thought
embedded jars on the Bundle-Classpath would qualify as "contents of this
bundle".

That would be the contents of the contents. :-)

With Bundle.getResource() / getResources(), it could potentially find
resources from other bundles, right?

Yes. This delegates first before searching bundle class path.

-> richard


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to