1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-25 15:52:06 +01:00

Add SmackConfiguration.addDisabledSmackClasses(String...)

This commit is contained in:
Florian Schmaus 2017-01-02 16:29:29 +01:00
parent 1bce31fcd9
commit 70e860fe27

View file

@ -297,6 +297,18 @@ public final class SmackConfiguration {
disabledSmackClasses.add(className);
}
/**
* Add the given class names to the list of disabled Smack classes.
*
* @param classNames the Smack classes to disable.
* @see #addDisabledSmackClass(String)
*/
public static void addDisabledSmackClasses(String... classNames) {
for (String className : classNames) {
addDisabledSmackClass(className);
}
}
public static boolean isDisabledSmackClass(String className) {
for (String disabledClassOrPackage : disabledSmackClasses) {
if (disabledClassOrPackage.equals(className)) {