lefou / pojosr

A service registry that enables OSGi style service registry programs
5 stars 2 forks source link

PojoSRBundle does not return ALL resource listings in BundleWiring mode #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Any reason why de.kalpatec.pojosr.framework.PojoSRBundle.findEntries is only 
using the current classpath and not the entire classpath to resolve a resource 
listing?

I am doing something like below and rely on the listResources function of the 
bundleWiring to return all resource URLs that are included in the project under 
test and also its dependent jar files.

bundleWiring.listResources("/com/bla/model", "*.class", 
BundleWiring.FINDENTRIES_RECURSE);

Have not looked into the pojosr internals in too much detail but seems to be a 
major fail that it does not work as any normal OSGi container does.

Cheers,
Niels

Original issue reported on code.google.com by niels...@gmail.com on 8 May 2014 at 3:01

GoogleCodeExporter commented 9 years ago
Sorry I meant the directory class path / this temporarily packaged jar(?) with 
only the immediate resources from the project under test but not any JARs the 
project depends on.

Original comment by niels...@gmail.com on 8 May 2014 at 3:03