Re: Classpath scanning with OSGi

2013-01-17 Thread Michael Meyer
Hi Mehrotra Thanks for the pointer! As I understand the code the main approach is finding the relevant bundles by analysing the imported and exported packages. Cheers michael 2013/1/16 Chetan Mehrotra : >> - Do you know of (simple) libraries that use classpath scanning and >> work in OSGi? (best

Re: Classpath scanning with OSGi

2013-01-15 Thread Chetan Mehrotra
> - Do you know of (simple) libraries that use classpath scanning and > work in OSGi? (best practice example) You can have a look at OsgiBundleResourcePatternResolver [1] from Eclipse Gemini Blueprint IO Library which also does the scanning to lookup for annotated beans. It also takes into account

Re: Classpath scanning with OSGi

2013-01-15 Thread Michael Meyer
Hi Richard > You might want to look into the BundleWiring.listResources() method. Using this method would definitely be nicer since it takes the actual classpath in to account and not just the bundle content. I should have mentioned that I'm restricted to version 4.2 of the OSGi specification. Ch

Re: Classpath scanning with OSGi

2013-01-15 Thread Richard S. Hall
e a hack? - Are there other possibilties to implement classpath scanning with OSGi? - Do you know of (simple) libraries that use classpath scanning and work in OSGi? (best practice example) I'm aware that the question is not Felix specific bu

Classpath scanning with OSGi

2013-01-15 Thread Michael Meyer
... = bundle.findEntries("migration/db", "*", true); } Questions: - Is the approach described above a perfectly legitimate approache or more like a hack? - Are there other possibilties to implement classpath scanning with OSGi? - Do you know of (simple) libraries that use class