mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Make ProviderManager static
also remove initialize() from ProviderFileLoader, by simply putting the code into the constructor.
This commit is contained in:
parent
0111be1a04
commit
90ea9ba2fc
12 changed files with 46 additions and 96 deletions
|
@ -253,8 +253,7 @@ public class JingleManager implements JingleSessionListener {
|
|||
* method you just call it once and all new connections will report Jingle support.)
|
||||
*/
|
||||
public static void setJingleServiceEnabled() {
|
||||
ProviderManager providerManager = ProviderManager.getInstance();
|
||||
providerManager.addIQProvider("jingle", "urn:xmpp:tmp:jingle", new JingleProvider());
|
||||
ProviderManager.addIQProvider("jingle", "urn:xmpp:tmp:jingle", new JingleProvider());
|
||||
|
||||
// Enable the Jingle support on every established connection
|
||||
// The ServiceDiscoveryManager class should have been already
|
||||
|
|
|
@ -81,7 +81,7 @@ public class RTPBridge extends IQ {
|
|||
public static final String NAMESPACE = "http://www.jivesoftware.com/protocol/rtpbridge";
|
||||
|
||||
static {
|
||||
ProviderManager.getInstance().addIQProvider(NAME, NAMESPACE, new Provider());
|
||||
ProviderManager.addIQProvider(NAME, NAMESPACE, new Provider());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -66,7 +66,7 @@ public class STUN extends IQ {
|
|||
public static final String NAMESPACE = "google:jingleinfo";
|
||||
|
||||
static {
|
||||
ProviderManager.getInstance().addIQProvider(ELEMENT_NAME, NAMESPACE, new STUN.Provider());
|
||||
ProviderManager.addIQProvider(ELEMENT_NAME, NAMESPACE, new STUN.Provider());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue