mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 10:37:59 +01:00
Add SmackConfiguration.addDisabledSmackClasses(String...)
This commit is contained in:
parent
1bce31fcd9
commit
70e860fe27
1 changed files with 12 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue