Package org.keycloak.storage.datastore
Class LegacyDatastoreProviderFactory
java.lang.Object
org.keycloak.storage.datastore.LegacyDatastoreProviderFactory
- All Implemented Interfaces:
EnvironmentDependentProviderFactory,ProviderEventListener,ProviderFactory<DatastoreProvider>,DatastoreProviderFactory
public class LegacyDatastoreProviderFactory
extends Object
implements DatastoreProviderFactory, ProviderEventListener, EnvironmentDependentProviderFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This is called when the server shuts down.create(KeycloakSession session) longgetId()longvoidinit(Config.Scope config) Only called once when the factory is first created.booleanvoidonEvent(ProviderEvent event) voidpostInit(KeycloakSessionFactory factory) Called after all provider factories have been initializedstatic voidsetupScheduledTasks(KeycloakSessionFactory sessionFactory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.provider.EnvironmentDependentProviderFactory
isSupportedMethods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
Constructor Details
-
LegacyDatastoreProviderFactory
public LegacyDatastoreProviderFactory()
-
-
Method Details
-
create
- Specified by:
createin interfaceProviderFactory<DatastoreProvider>
-
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<DatastoreProvider>
-
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<DatastoreProvider>
-
close
public void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceProviderFactory<DatastoreProvider>
-
getId
- Specified by:
getIdin interfaceProviderFactory<DatastoreProvider>
-
getClientStorageProviderTimeout
public long getClientStorageProviderTimeout() -
getRoleStorageProviderTimeout
public long getRoleStorageProviderTimeout() -
onEvent
- Specified by:
onEventin interfaceProviderEventListener
-
setupScheduledTasks
-
isSupported
public boolean isSupported()- Specified by:
isSupportedin interfaceEnvironmentDependentProviderFactory- Returns:
trueif the provider is supported and should be available,falseotherwise
-