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 TypeMethodDescriptionvoid
close()
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()
void
init
(Config.Scope config) Only called once when the factory is first created.void
postInit
(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, wait
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
Constructor Details
-
JpaServerConfigStorageProviderFactory
public JpaServerConfigStorageProviderFactory()
-
-
Method Details
-
create
- Specified by:
create
in interfaceProviderFactory<ServerConfigStorageProvider>
-
init
Description copied from interface:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory<ServerConfigStorageProvider>
-
postInit
Description copied from interface:ProviderFactory
Called after all provider factories have been initialized- Specified by:
postInit
in interfaceProviderFactory<ServerConfigStorageProvider>
-
close
public void close()Description copied from interface:ProviderFactory
This is called when the server shuts down.- Specified by:
close
in interfaceProviderFactory<ServerConfigStorageProvider>
-
getId
- Specified by:
getId
in interfaceProviderFactory<ServerConfigStorageProvider>
-
dependsOn
Description copied from interface:ProviderFactory
Optional 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 thisProviderFactory
beforeProviderFactory.close()
is called on any of the dependent ProviderFactory implementations.- Specified by:
dependsOn
in interfaceProviderFactory<ServerConfigStorageProvider>
-