public ExtendingThemeManager( KeycloakSession session, ConcurrentHashMap<ExtendingThemeManagerFactory.ThemeKey, Theme> themeCache) { this.session = session; this.themeCache = themeCache; this.defaultTheme = Config.scope("theme").get("default", Version.NAME.toLowerCase()); }
@Override public void init(Config.Scope config) { if (Config.scope("theme").getBoolean("cacheThemes", true)) { themeCache = new ConcurrentHashMap<>(); } }