mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 00:59:39 +02:00
Make resolver-dnsjava, -minidns initializer
and OSGi components. There is really no need to treat them different then resolver-javax. This also allows the removal of the DNSUtil.init() method.
This commit is contained in:
parent
a5eebf3840
commit
0c0737942c
10 changed files with 55 additions and 50 deletions
|
@ -17,7 +17,6 @@
|
|||
package org.jivesoftware.smack.util.dns.javax;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Hashtable;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -56,10 +55,6 @@ public class JavaxResolver extends SmackAndOsgiInitializer implements DNSResolve
|
|||
// Try to set this DNS resolver as primary one
|
||||
setup();
|
||||
}
|
||||
|
||||
public JavaxResolver() {
|
||||
|
||||
}
|
||||
|
||||
public static synchronized DNSResolver getInstance() {
|
||||
if (instance == null && isSupported()) {
|
||||
|
@ -102,12 +97,8 @@ public class JavaxResolver extends SmackAndOsgiInitializer implements DNSResolve
|
|||
|
||||
@Override
|
||||
public List<Exception> initialize() {
|
||||
return initialize(null);
|
||||
setup();
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Exception> initialize(ClassLoader classLoader) {
|
||||
setup();
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue