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 SummaryConstructors Constructor Description LegacyDatastoreProviderFactory()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()This is called when the server shuts down.DatastoreProvidercreate(KeycloakSession session)longgetClientStorageProviderTimeout()StringgetId()longgetRoleStorageProviderTimeout()voidinit(Config.Scope config)Only called once when the factory is first created.booleanisSupported()voidonEvent(ProviderEvent event)voidpostInit(KeycloakSessionFactory factory)Called after all provider factories have been initializedstatic voidsetupScheduledTasks(KeycloakSessionFactory sessionFactory)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.provider.EnvironmentDependentProviderFactoryisSupported
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, order
 
- 
 
- 
- 
- 
Method Detail- 
createpublic DatastoreProvider create(KeycloakSession session) - Specified by:
- createin interface- ProviderFactory<DatastoreProvider>
 
 - 
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<DatastoreProvider>
 
 - 
postInitpublic void postInit(KeycloakSessionFactory factory) Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
- postInitin interface- ProviderFactory<DatastoreProvider>
 
 - 
closepublic void close() Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
- closein interface- ProviderFactory<DatastoreProvider>
 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- ProviderFactory<DatastoreProvider>
 
 - 
getClientStorageProviderTimeoutpublic long getClientStorageProviderTimeout() 
 - 
getRoleStorageProviderTimeoutpublic long getRoleStorageProviderTimeout() 
 - 
onEventpublic void onEvent(ProviderEvent event) - Specified by:
- onEventin interface- ProviderEventListener
 
 - 
setupScheduledTaskspublic static void setupScheduledTasks(KeycloakSessionFactory sessionFactory) 
 - 
isSupportedpublic boolean isSupported() - Specified by:
- isSupportedin interface- EnvironmentDependentProviderFactory
- Returns:
- trueif the provider is supported and should be available,- falseotherwise
 
 
- 
 
-