public class ClasspathThemeProviderFactory extends Object implements ThemeProviderFactory
Modifier and Type | Class and Description |
---|---|
static class |
ClasspathThemeProviderFactory.ThemeRepresentation |
static class |
ClasspathThemeProviderFactory.ThemesRepresentation |
Modifier and Type | Field and Description |
---|---|
static String |
KEYCLOAK_THEMES_JSON |
protected static Map<Theme.Type,Map<String,ClassLoaderTheme>> |
themes |
Constructor and Description |
---|
ClasspathThemeProviderFactory(String id) |
ClasspathThemeProviderFactory(String id,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
void |
close()
This is called when the server shuts down.
|
ThemeProvider |
create(KeycloakSession session) |
String |
getId() |
void |
init(Config.Scope config)
Only called once when the factory is first created.
|
protected void |
loadThemes(ClassLoader classLoader,
InputStream themesInputStream) |
void |
postInit(KeycloakSessionFactory factory)
Called after all provider factories have been initialized
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
order
public static final String KEYCLOAK_THEMES_JSON
protected static Map<Theme.Type,Map<String,ClassLoaderTheme>> themes
public ClasspathThemeProviderFactory(String id)
public ClasspathThemeProviderFactory(String id, ClassLoader classLoader)
public ThemeProvider create(KeycloakSession session)
create
in interface ProviderFactory<ThemeProvider>
public void init(Config.Scope config)
ProviderFactory
init
in interface ProviderFactory<ThemeProvider>
public void postInit(KeycloakSessionFactory factory)
ProviderFactory
postInit
in interface ProviderFactory<ThemeProvider>
public void close()
ProviderFactory
close
in interface ProviderFactory<ThemeProvider>
public String getId()
getId
in interface ProviderFactory<ThemeProvider>
protected void loadThemes(ClassLoader classLoader, InputStream themesInputStream)
Copyright © 2021 JBoss by Red Hat. All rights reserved.