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
> - 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
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
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
... = 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
5 matches
Mail list logo