AnsweredAssumed Answered

Dependency to Declarative Services

Question asked by Frizz on Nov 28, 2016
Latest reply on Dec 1, 2016 by Flow

Question: Is the dependency to Declarative Services really necessary?

 

In smack-extensions\src\main\resources\org.jivesoftware.smackx\smack-extensions-co mponents.xml is the following:

<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.2.0"

    enabled="true" immediate="true" name="Smack Extensions API">

    <implementation

        class="org.jivesoftware.smack.initializer.extensions.ExtensionsInitializer" />

</scr:component>

 

Which basically does the same as new org.jivesoftware.smack.extensions.ExtensionsInitializer().initialize();

 

From what I can say this is the only place where Declarative Services are uses in Smack. Since Declarative Services are a quite heavy dependency I would like to ask if it really makes sense to use them in Smack.

Outcomes