mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +01:00
Make ProviderManager handle StreamFeatureProvider(s)
when a new ProviderLoader is added. This was previously missing.
This commit is contained in:
parent
5ad4e85ed5
commit
b348ebfd6d
1 changed files with 8 additions and 0 deletions
|
@ -123,6 +123,7 @@ public final class ProviderManager {
|
|||
SmackConfiguration.getVersion();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public static void addLoader(ProviderLoader loader) {
|
||||
if (loader.getIQProviderInfo() != null) {
|
||||
for (IQProviderInfo info : loader.getIQProviderInfo()) {
|
||||
|
@ -135,6 +136,13 @@ public final class ProviderManager {
|
|||
addExtensionProvider(info.getElementName(), info.getNamespace(), info.getProvider());
|
||||
}
|
||||
}
|
||||
|
||||
if (loader.getStreamFeatureProviderInfo() != null) {
|
||||
for (StreamFeatureProviderInfo info : loader.getStreamFeatureProviderInfo()) {
|
||||
addStreamFeatureProvider(info.getElementName(), info.getNamespace(),
|
||||
(PacketExtensionProvider<PacketExtension>) info.getProvider());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue