Class DefaultInfinispanConnectionProviderFactory
java.lang.Object
org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory
- All Implemented Interfaces:
InfinispanConnectionProviderFactory
,EnvironmentDependentProviderFactory
,ProviderFactory<InfinispanConnectionProvider>
public class DefaultInfinispanConnectionProviderFactory
extends Object
implements InfinispanConnectionProviderFactory, EnvironmentDependentProviderFactory
- Author:
- Stian Thorgersen
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.infinispan.manager.EmbeddedCacheManager
protected Config.Scope
protected boolean
protected static final org.jboss.logging.Logger
protected RemoteCacheProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
This is called when the server shuts down.create
(KeycloakSession session) getId()
protected org.infinispan.configuration.cache.Configuration
void
init
(Config.Scope config) Only called once when the factory is first created.protected void
initContainerManaged
(org.infinispan.manager.EmbeddedCacheManager cacheManager) protected void
boolean
protected void
lazyInit()
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.EnvironmentDependentProviderFactory
isSupported
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger -
config
-
cacheManager
protected org.infinispan.manager.EmbeddedCacheManager cacheManager -
remoteCacheProvider
-
containerManaged
protected boolean containerManaged
-
-
Constructor Details
-
DefaultInfinispanConnectionProviderFactory
public DefaultInfinispanConnectionProviderFactory()
-
-
Method Details
-
create
- Specified by:
create
in interfaceProviderFactory<InfinispanConnectionProvider>
-
close
public void close()Description copied from interface:ProviderFactory
This is called when the server shuts down.- Specified by:
close
in interfaceProviderFactory<InfinispanConnectionProvider>
-
getId
- Specified by:
getId
in interfaceProviderFactory<InfinispanConnectionProvider>
-
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<InfinispanConnectionProvider>
-
postInit
Description copied from interface:ProviderFactory
Called after all provider factories have been initialized- Specified by:
postInit
in interfaceProviderFactory<InfinispanConnectionProvider>
-
lazyInit
protected void lazyInit() -
initContainerManaged
protected void initContainerManaged(org.infinispan.manager.EmbeddedCacheManager cacheManager) -
initEmbedded
protected void initEmbedded() -
getKeysCacheConfig
protected org.infinispan.configuration.cache.Configuration getKeysCacheConfig() -
isSupported
public boolean isSupported()- Specified by:
isSupported
in interfaceEnvironmentDependentProviderFactory
- Returns:
true
if the provider is supported and should be available,false
otherwise
-