Hi,
I'm quite new to OSGi, it's pretty impressive work and I'm very
excited to see a project at apache's incubator. But I have some suggestions.
Ok, so OSGi works with bundles. You register these components so
they can collaborate. But registering them in a flat way would increase
management efforts, imagine an OSGi instance with like 50 components
registered. Using namespaces in bundles's names my solve this, but,
IMHO, this is a tricky way to solve this problem. So Felix could support
namespaces natively using a directory-like structure. Some advantages
would be:
1. Would be easier to a management GUI to display the directory
hierarchy.
2. There could be a special bundle in each directory, these bundles
would define global metadata (like imports and exports) and other
bundles below them would inherit these metadata.
This special bundle could define a listener so it can process
other bundles that register/unregister from it's owning directory (and
other ideas are suitable here).
3. The directory structure doesn't needs to be logical only, it
could be logical and physical increasing organization.
4. There could be visibility between directories, i.e. bundles
defined in a directory A can see bundles in directory B but can't see
bundles in directory C.
I suppose this is not part of OSGi's spec and maybe this is a crazy
crap idea, but I really would like to hear from you about this.
Kind Regards,
Thiago Souza