Class DefaultInfinispanTransactionProviderFactory
java.lang.Object
org.keycloak.models.sessions.infinispan.transaction.DefaultInfinispanTransactionProviderFactory
- All Implemented Interfaces:
InfinispanTransactionProviderFactory,ProviderFactory<InfinispanTransactionProvider>,ServerInfoAwareProviderFactory
public class DefaultInfinispanTransactionProviderFactory
extends Object
implements InfinispanTransactionProviderFactory, ServerInfoAwareProviderFactory
-
Field Summary
Fields -
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.Returns the metadata for each configuration property supported by this factory.getId()Return actual info about the provider.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
order
-
Field Details
-
ID
- See Also:
-
log
protected static org.jboss.logging.Logger log -
CONFIG_WRITE_SESSION_UPDATES_IN_MAIN_TRANSACTION
- See Also:
-
-
Constructor Details
-
DefaultInfinispanTransactionProviderFactory
public DefaultInfinispanTransactionProviderFactory()
-
-
Method Details
-
create
- Specified by:
createin interfaceProviderFactory<InfinispanTransactionProvider>
-
init
Description copied from interface:ProviderFactoryOnly called once when the factory is first created.- Specified by:
initin interfaceProviderFactory<InfinispanTransactionProvider>
-
getConfigMetadata
Description copied from interface:ProviderFactoryReturns the metadata for each configuration property supported by this factory.- Specified by:
getConfigMetadatain interfaceProviderFactory<InfinispanTransactionProvider>- Returns:
- a list with the metadata for each configuration property supported by this factory
-
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<InfinispanTransactionProvider>
-
getOperationalInfo
Description copied from interface:ServerInfoAwareProviderFactoryReturn actual info about the provider. This info contains information about provider's configuration and operational conditions (eg. errors in connection to remote systems etc) which is shown on "Server Info" page then.- Specified by:
getOperationalInfoin interfaceServerInfoAwareProviderFactory- Returns:
- Map with keys describing value and relevant values itself
-
close
public void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceProviderFactory<InfinispanTransactionProvider>
-
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<InfinispanTransactionProvider>
-
getId
- Specified by:
getIdin interfaceProviderFactory<InfinispanTransactionProvider>
-