Class JpaServerConfigStorageProviderFactory
java.lang.Object
org.keycloak.storage.configuration.jpa.JpaServerConfigStorageProviderFactory
- All Implemented Interfaces:
ProviderFactory<ServerConfigStorageProvider>,ServerConfigStorageProviderFactory
public class JpaServerConfigStorageProviderFactory
extends Object
implements ServerConfigStorageProviderFactory
A
ServerConfigStorageProviderFactory that instantiates JpaServerConfigStorageProvider.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This is called when the server shuts down.create(KeycloakSession session) Optional method used to declare that a ProviderFactory has a dependency on one or more Providers.getId()voidinit(Config.Scope config) Only called once when the factory is first created.voidpostInit(KeycloakSessionFactory factory) Called after all provider factories have been initializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
Constructor Details
-
JpaServerConfigStorageProviderFactory
public JpaServerConfigStorageProviderFactory()
-
-
Method Details
-
create
- Specified by:
createin interfaceProviderFactory<ServerConfigStorageProvider>
-
init
Description copied from interface:ProviderFactoryOnly called once when the factory is first created.- Specified by:
initin interfaceProviderFactory<ServerConfigStorageProvider>
-
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<ServerConfigStorageProvider>
-
close
public void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceProviderFactory<ServerConfigStorageProvider>
-
getId
- Specified by:
getIdin interfaceProviderFactory<ServerConfigStorageProvider>
-
dependsOn
Description copied from interface:ProviderFactoryOptional method used to declare that a ProviderFactory has a dependency on one or more Providers. If a Provider is declared here, it is guaranteed that the dependenciesProviderFactory.postInit(org.keycloak.models.KeycloakSessionFactory)method will be executed before this ProviderFactory'sProviderFactory.postInit(org.keycloak.models.KeycloakSessionFactory). Similarly, it's guaranteed thatProviderFactory.close()will be called on thisProviderFactorybeforeProviderFactory.close()is called on any of the dependent ProviderFactory implementations.- Specified by:
dependsOnin interfaceProviderFactory<ServerConfigStorageProvider>
-