A class could be settingsdependent and reloadable
This commit is contained in:
parent
b67cac1d97
commit
24cc4a1d13
@ -148,11 +148,13 @@ public class AuthMeServiceInitializer {
|
|||||||
throw new IllegalStateException("Settings instance is null");
|
throw new IllegalStateException("Settings instance is null");
|
||||||
}
|
}
|
||||||
for (Object object : objects.values()) {
|
for (Object object : objects.values()) {
|
||||||
if (object instanceof Reloadable) {
|
if (object instanceof SettingsDependent) {
|
||||||
((Reloadable) object).reload();
|
|
||||||
} else if (object instanceof SettingsDependent) {
|
|
||||||
((SettingsDependent) object).loadSettings(settings);
|
((SettingsDependent) object).loadSettings(settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (object instanceof Reloadable) {
|
||||||
|
((Reloadable) object).reload();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user