105 ThemesRepresentation themesRep = JsonSerialization.readValue(themesInputStream, ThemesRepresentation.class);
107 for (ThemeRepresentation themeRep : themesRep.getThemes()) {
108 for (String t : themeRep.getTypes()) {
109 Theme.Type type = Theme.Type.valueOf(t.toUpperCase());
110 if (!
themes.containsKey(type)) {
111 themes.put(type,
new HashMap<>());
113 themes.get(type).put(themeRep.getName(),
new ClassLoaderTheme(themeRep.getName(), type, classLoader));
116 }
catch (Exception e) {
117 throw new RuntimeException(
"Failed to load themes", e);
static Map< Theme.Type, Map< String, ClassLoaderTheme > > themes
Definition: ClasspathThemeProviderFactory.java:35