1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +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); 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) { public static boolean isDisabledSmackClass(String className) {
for (String disabledClassOrPackage : disabledSmackClasses) { for (String disabledClassOrPackage : disabledSmackClasses) {
if (disabledClassOrPackage.equals(className)) { if (disabledClassOrPackage.equals(className)) {