I have almost similar question and it will be really appreciated if anyone can answers the below question?
Q: Is this possible in the AEM/CQ5 OSGI bundles approach? If yes then how?
Thank you!!!
The OSGI Felix implementation in AEM will select one of the bundles and will use that for the com.abc.xyz package. So even though it exists in two different bundles, both of which are installed, only one will be used at runtime. You can control which one by making whatever will consume the package be dependent on a specific version (make it import a specific version), then making your Bundle A and Bundle B have different version numbers so it can differentiate which one to use. See Multiple bundle versions deployed in one OSGi instance for details on how this is done.
See also