mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 05:52:06 +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);
|
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)) {
|
||||||
|
|
Loading…
Reference in a new issue