Package org.keycloak.models.map.lock
Class MapGlobalLockProviderFactory
java.lang.Object
org.keycloak.models.map.common.AbstractMapProviderFactory<GlobalLockProvider,MapLockEntity,MapLockEntity>
org.keycloak.models.map.lock.MapGlobalLockProviderFactory
- All Implemented Interfaces:
AmphibianProviderFactory<GlobalLockProvider>,ComponentFactory<GlobalLockProvider,,GlobalLockProvider> GlobalLockProviderFactory,ConfiguredProvider,EnvironmentDependentProviderFactory,ProviderFactory<GlobalLockProvider>
public class MapGlobalLockProviderFactory
extends AbstractMapProviderFactory<GlobalLockProvider,MapLockEntity,MapLockEntity>
implements GlobalLockProviderFactory, EnvironmentDependentProviderFactory
Factory to create a GlobalLockProvider backed by a Map store.
- Author:
- Alexander Schwartz
-
Nested Class Summary
Nested classes/interfaces inherited from class org.keycloak.models.map.common.AbstractMapProviderFactory
AbstractMapProviderFactory.MapProviderObjectType -
Field Summary
FieldsFields inherited from class org.keycloak.models.map.common.AbstractMapProviderFactory
CONFIG_STORAGE, LOG, modelType, PROVIDER_ID, uniqueCounter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This is called when the server shuts down.createNew(KeycloakSession session) Creates new instance of a provider.Returns the metadata for each configuration property supported by this factory.getId()voidinit(Config.Scope config) Only called once when the factory is first created.booleanvoidpostInit(KeycloakSessionFactory factory) Called after all provider factories have been initializedMethods inherited from class org.keycloak.models.map.common.AbstractMapProviderFactory
create, getMapStorage, getProviderFactoryOrComponentFactoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.component.AmphibianProviderFactory
create, getConfigProperties, onUpdate, preRemoveMethods inherited from interface org.keycloak.component.ComponentFactory
getCommonProviderConfigProperties, getTypeMetadata, onCreate, validateConfigurationMethods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfigMethods inherited from interface org.keycloak.provider.EnvironmentDependentProviderFactory
isSupportedMethods inherited from interface org.keycloak.provider.ProviderFactory
order
-
Field Details
-
DEFAULT_TIMEOUT_MILLISECONDS
- See Also:
-
DEFAULT_VALUE
public static final long DEFAULT_VALUE- See Also:
-
-
Constructor Details
-
MapGlobalLockProviderFactory
public MapGlobalLockProviderFactory()
-
-
Method Details
-
createNew
Description copied from class:AbstractMapProviderFactoryCreates new instance of a provider.- Specified by:
createNewin classAbstractMapProviderFactory<GlobalLockProvider,MapLockEntity, MapLockEntity> - Returns:
- See description.
-
init
Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
initin interfaceProviderFactory<GlobalLockProvider>- Overrides:
initin classAbstractMapProviderFactory<GlobalLockProvider,MapLockEntity, MapLockEntity>
-
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<GlobalLockProvider>- Overrides:
postInitin classAbstractMapProviderFactory<GlobalLockProvider,MapLockEntity, MapLockEntity>
-
close
public void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceAmphibianProviderFactory<GlobalLockProvider>- Specified by:
closein interfaceProviderFactory<GlobalLockProvider>
-
getId
- Specified by:
getIdin interfaceProviderFactory<GlobalLockProvider>- Overrides:
getIdin classAbstractMapProviderFactory<GlobalLockProvider,MapLockEntity, MapLockEntity>
-
isSupported
public boolean isSupported()- Specified by:
isSupportedin interfaceEnvironmentDependentProviderFactory- Overrides:
isSupportedin classAbstractMapProviderFactory<GlobalLockProvider,MapLockEntity, MapLockEntity> - Returns:
trueif the provider is supported and should be available,falseotherwise
-
getHelpText
- Specified by:
getHelpTextin interfaceConfiguredProvider
-
getConfigMetadata
Description copied from interface:ProviderFactoryReturns the metadata for each configuration property supported by this factory.- Specified by:
getConfigMetadatain interfaceProviderFactory<GlobalLockProvider>- Returns:
- a list with the metadata for each configuration property supported by this factory
-