public abstract class AbstractMapProviderFactory<T extends Provider,K,V extends AbstractEntity<K>,M> extends Object implements AmphibianProviderFactory<T>, EnvironmentDependentProviderFactory
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_STORAGE |
protected Class<V> |
entityType |
protected org.jboss.logging.Logger |
LOG |
protected Class<M> |
modelType |
static String |
PROVIDER_ID |
Modifier | Constructor and Description |
---|---|
protected |
AbstractMapProviderFactory(Class<? extends AbstractEntity> entityType,
Class<M> modelType) |
Modifier and Type | Method and Description |
---|---|
String |
getId() |
protected MapStorage<K,V,M> |
getStorage(KeycloakSession session) |
void |
init(Config.Scope config)
Only called once when the factory is first created.
|
boolean |
isSupported() |
void |
postInit(KeycloakSessionFactory factory)
Called after all provider factories have been initialized
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, create, create, getConfigProperties, onUpdate, preRemove
getCommonProviderConfigProperties, getTypeMetadata, onCreate, validateConfiguration
order
getHelpText
public static final String PROVIDER_ID
public static final String CONFIG_STORAGE
protected final org.jboss.logging.Logger LOG
protected final Class<V extends AbstractEntity<K>> entityType
protected AbstractMapProviderFactory(Class<? extends AbstractEntity> entityType, Class<M> modelType)
public String getId()
getId
in interface ProviderFactory<T extends Provider>
protected MapStorage<K,V,M> getStorage(KeycloakSession session)
public void postInit(KeycloakSessionFactory factory)
ProviderFactory
postInit
in interface ProviderFactory<T extends Provider>
public void init(Config.Scope config)
ProviderFactory
init
in interface ProviderFactory<T extends Provider>
public boolean isSupported()
isSupported
in interface EnvironmentDependentProviderFactory
true
if the provider is supported and should be available, false
otherwiseCopyright © 2021 JBoss by Red Hat. All rights reserved.