Some time ago I proposed a change in sling-commons-mime to use declarative services instead of BundleActivator for registering the mime types.
See: https://issues.apache.org/jira/browse/SLING-7612 The code simplifies the setup quite a bit as the service creation and destruction is done by DS and the properties are derived from the annotations. Bertrand was a bit worried about changed timings as this is a low level bundle and so with DS involved services might come up a bit later as before. What do you think? Christian -- -- Christian Schneider http://www.liquid-reality.de Computer Scientist http://www.adobe.com