public class ConcurrentHashMapStorageProviderFactory extends Object implements AmphibianProviderFactory<MapStorageProvider>, MapStorageProviderFactory, EnvironmentDependentProviderFactory
MapStorageProviderFactory.Flag
Modifier and Type | Field and Description |
---|---|
static Map<Class<?>,Class<?>> |
INTERFACE_TO_IMPL |
static Map<Class<?>,String> |
MODEL_TO_NAME |
static Map<Class<?>,Class<? extends AbstractEntity>> |
MODEL_TO_VALUE_TYPE |
static String |
PROVIDER_ID |
Constructor and Description |
---|
ConcurrentHashMapStorageProviderFactory() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This is called when the server shuts down.
|
MapStorageProvider |
create(KeycloakSession session) |
List<ProviderConfigProperty> |
getConfigProperties() |
String |
getHelpText() |
String |
getId() |
<K,V extends AbstractEntity & UpdatableEntity,M> |
getStorage(Class<M> modelType,
MapStorageProviderFactory.Flag... flags) |
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
create, onUpdate, preRemove
getCommonProviderConfigProperties, getTypeMetadata, onCreate, validateConfiguration
public static final String PROVIDER_ID
public static final Map<Class<?>,Class<? extends AbstractEntity>> MODEL_TO_VALUE_TYPE
public ConcurrentHashMapStorageProviderFactory()
public MapStorageProvider create(KeycloakSession session)
create
in interface AmphibianProviderFactory<MapStorageProvider>
create
in interface ComponentFactory<MapStorageProvider,MapStorageProvider>
create
in interface ProviderFactory<MapStorageProvider>
public void init(Config.Scope config)
ProviderFactory
init
in interface ProviderFactory<MapStorageProvider>
public void postInit(KeycloakSessionFactory factory)
ProviderFactory
postInit
in interface ProviderFactory<MapStorageProvider>
public void close()
ProviderFactory
close
in interface AmphibianProviderFactory<MapStorageProvider>
close
in interface ProviderFactory<MapStorageProvider>
public String getId()
getId
in interface ProviderFactory<MapStorageProvider>
public <K,V extends AbstractEntity & UpdatableEntity,M> ConcurrentHashMapStorage<K,V,M> getStorage(Class<M> modelType, MapStorageProviderFactory.Flag... flags)
public String getHelpText()
getHelpText
in interface ConfiguredProvider
public List<ProviderConfigProperty> getConfigProperties()
getConfigProperties
in interface AmphibianProviderFactory<MapStorageProvider>
getConfigProperties
in interface ConfiguredProvider
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.