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.AbstractMapProviderFactoryAbstractMapProviderFactory.MapProviderObjectType
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_TIMEOUT_MILLISECONDSstatic longDEFAULT_VALUE- 
Fields inherited from class org.keycloak.models.map.common.AbstractMapProviderFactoryCONFIG_STORAGE, LOG, modelType, PROVIDER_ID, uniqueCounter
 
- 
 - 
Constructor SummaryConstructors Constructor Description MapGlobalLockProviderFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()This is called when the server shuts down.MapGlobalLockProvidercreateNew(KeycloakSession session)Creates new instance of a provider.List<ProviderConfigProperty>getConfigMetadata()Returns the metadata for each configuration property supported by this factory.StringgetHelpText()StringgetId()voidinit(Config.Scope config)Only called once when the factory is first created.booleanisSupported()voidpostInit(KeycloakSessionFactory factory)Called after all provider factories have been initialized- 
Methods inherited from class org.keycloak.models.map.common.AbstractMapProviderFactorycreate, getMapStorage, getProviderFactoryOrComponentFactory
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.component.AmphibianProviderFactorycreate, getConfigProperties, onUpdate, preRemove
 - 
Methods inherited from interface org.keycloak.component.ComponentFactorygetCommonProviderConfigProperties, getTypeMetadata, onCreate, validateConfiguration
 - 
Methods inherited from interface org.keycloak.provider.ConfiguredProvidergetConfig
 - 
Methods inherited from interface org.keycloak.provider.EnvironmentDependentProviderFactoryisSupported
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactoryorder
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_TIMEOUT_MILLISECONDSpublic static final String DEFAULT_TIMEOUT_MILLISECONDS - See Also:
- Constant Field Values
 
 - 
DEFAULT_VALUEpublic static final long DEFAULT_VALUE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
createNewpublic MapGlobalLockProvider createNew(KeycloakSession session) Description copied from class:AbstractMapProviderFactoryCreates new instance of a provider.- Specified by:
- createNewin class- AbstractMapProviderFactory<GlobalLockProvider,MapLockEntity,MapLockEntity>
- Returns:
- See description.
 
 - 
initpublic void init(Config.Scope config) Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
- initin interface- ProviderFactory<GlobalLockProvider>
- Overrides:
- initin class- AbstractMapProviderFactory<GlobalLockProvider,MapLockEntity,MapLockEntity>
 
 - 
postInitpublic void postInit(KeycloakSessionFactory factory) Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
- postInitin interface- ProviderFactory<GlobalLockProvider>
- Overrides:
- postInitin class- AbstractMapProviderFactory<GlobalLockProvider,MapLockEntity,MapLockEntity>
 
 - 
closepublic void close() Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
- closein interface- AmphibianProviderFactory<GlobalLockProvider>
- Specified by:
- closein interface- ProviderFactory<GlobalLockProvider>
 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- ProviderFactory<GlobalLockProvider>
- Overrides:
- getIdin class- AbstractMapProviderFactory<GlobalLockProvider,MapLockEntity,MapLockEntity>
 
 - 
isSupportedpublic boolean isSupported() - Specified by:
- isSupportedin interface- EnvironmentDependentProviderFactory
- Overrides:
- isSupportedin class- AbstractMapProviderFactory<GlobalLockProvider,MapLockEntity,MapLockEntity>
- Returns:
- trueif the provider is supported and should be available,- falseotherwise
 
 - 
getHelpTextpublic String getHelpText() - Specified by:
- getHelpTextin interface- ConfiguredProvider
 
 - 
getConfigMetadatapublic List<ProviderConfigProperty> getConfigMetadata() Description copied from interface:ProviderFactoryReturns the metadata for each configuration property supported by this factory.- Specified by:
- getConfigMetadatain interface- ProviderFactory<GlobalLockProvider>
- Returns:
- a list with the metadata for each configuration property supported by this factory
 
 
- 
 
-