From 70e860fe27173b29d10c6761da2d8d977861ffff Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 2 Jan 2017 16:29:29 +0100 Subject: [PATCH] Add SmackConfiguration.addDisabledSmackClasses(String...) --- .../org/jivesoftware/smack/SmackConfiguration.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/SmackConfiguration.java b/smack-core/src/main/java/org/jivesoftware/smack/SmackConfiguration.java index 3d9d36d1e..a217604ba 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/SmackConfiguration.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/SmackConfiguration.java @@ -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)) {