Romain mentioned in another thread about wanting to eliminate the osgi locator shade. I would be super happy to make this happen.
This can be accomplished by leveraging the Service Loader Mediator. However there is a caveat. In order to stick with the Service Mediator spec, the code in question must be using the method
This is to ensure that proper weaving can be accomplished at runtime.
In testing, I applied the required metadata on geronimo-jsonb_1.0_spec and this worked fine, however jsonb depends on jsonp (for instance geronimo-jsonp_1.1_spec) which, when I use these to gether, I found geronimo-jsonp_1.x_spec does not use ServiceLoader at all, but rather a self implementation of such .
Would it be fair to replace the self implemented logic with the logic found in the geronimo-jsonb  which does the same but using ServiceLoader?
Finally, if the goal is to enable Service Loader Mediator to replace all osgi locator, then we need to ensure this pattern is followed throughout. Does that seem fair? If so I can go through and apply the fix in many places.