mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 10:19:41 +02:00
Add SmackAndOsgiInitializer
OSGi ServiceComponents need the activate method, make sure it exists for every SmackInitializer by using this class.
This commit is contained in:
parent
9db5e28fe5
commit
59527d320d
3 changed files with 31 additions and 11 deletions
|
@ -28,7 +28,7 @@ import javax.naming.directory.Attributes;
|
|||
import javax.naming.directory.DirContext;
|
||||
import javax.naming.directory.InitialDirContext;
|
||||
|
||||
import org.jivesoftware.smack.initializer.SmackInitializer;
|
||||
import org.jivesoftware.smack.initializer.SmackAndOsgiInitializer;
|
||||
import org.jivesoftware.smack.util.DNSUtil;
|
||||
import org.jivesoftware.smack.util.dns.DNSResolver;
|
||||
import org.jivesoftware.smack.util.dns.SRVRecord;
|
||||
|
@ -39,7 +39,7 @@ import org.jivesoftware.smack.util.dns.SRVRecord;
|
|||
* @author Florian Schmaus
|
||||
*
|
||||
*/
|
||||
public class JavaxResolver implements DNSResolver, SmackInitializer {
|
||||
public class JavaxResolver extends SmackAndOsgiInitializer implements DNSResolver {
|
||||
|
||||
private static JavaxResolver instance;
|
||||
private static DirContext dirContext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue