@Override public void init(Config.Scope config) { String[] include = config.getArray("include-events"); if (include != null) { for (String i : include) { includedEvents.add(EventType.valueOf(i.toUpperCase())); } } else { includedEvents.addAll(SUPPORTED_EVENTS); } String[] exclude = config.getArray("exclude-events"); if (exclude != null) { for (String e : exclude) { includedEvents.remove(EventType.valueOf(e.toUpperCase())); } } }
@Override public void init(Config.Scope config) { String[] include = config.getArray("include-events"); if (include != null) { for (String i : include) { includedEvents.add(EventType.valueOf(i.toUpperCase())); } } else { includedEvents.addAll(SUPPORTED_EVENTS); } String[] exclude = config.getArray("exclude-events"); if (exclude != null) { for (String e : exclude) { includedEvents.remove(EventType.valueOf(e.toUpperCase())); } } }
@Override public void init(Config.Scope config) { String[] include = config.getArray("include-events"); if (include != null) { for (String i : include) { includedEvents.add(EventType.valueOf(i.toUpperCase())); } } else { for (EventType i : EventType.values()) { includedEvents.add(i); } } String[] exclude = config.getArray("exclude-events"); if (exclude != null) { for (String e : exclude) { includedEvents.remove(EventType.valueOf(e.toUpperCase())); } } }
@Override public void init(Config.Scope config) { String[] modules = config.getArray("modules"); if (modules != null) { try { for (String moduleSpec : modules) { Module module = Module.getContextModuleLoader().loadModule(ModuleIdentifier.fromString(moduleSpec)); ModuleClassLoader classLoader = module.getClassLoader(); loadThemes(classLoader, classLoader.getResourceAsStream(KEYCLOAK_THEMES_JSON)); } } catch (Exception e) { throw new RuntimeException("Failed to load themes", e); } } }
@Override public void init(Config.Scope config) { String[] excludes = config.getArray("excludes"); if (excludes != null) { for (String e : excludes) { excludedEvents.add(EventType.valueOf(e)); } } }
@Override public void init(Config.Scope scope) { addJBossDirURLSystemProperties(); String[] includes = scope.getArray("include-events"); if (includes != null) { for (String e : includes) { includedEvents.add(EventType.valueOf(e)); } } }
@Override public void init(Config.Scope scope) { addJBossDirURLSystemProperties(); String[] includes = scope.getArray("include-events"); if (includes != null) { for (String e : includes) { includedEvents.add(EventType.valueOf(e)); } } }