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
Fields Modifier and Type Field Description protected org.infinispan.manager.EmbeddedCacheManager
cacheManager
protected Config.Scope
config
protected boolean
containerManaged
protected static org.jboss.logging.Logger
logger
protected RemoteCacheProvider
remoteCacheProvider
-
Constructor Summary
Constructors Constructor Description DefaultInfinispanConnectionProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
This is called when the server shuts down.InfinispanConnectionProvider
create(KeycloakSession session)
String
getId()
protected org.infinispan.configuration.cache.Configuration
getKeysCacheConfig()
void
init(Config.Scope config)
Only called once when the factory is first created.protected void
initContainerManaged(org.infinispan.manager.EmbeddedCacheManager cacheManager)
protected void
initEmbedded()
boolean
isSupported()
protected void
lazyInit()
void
postInit(KeycloakSessionFactory factory)
Called after all provider factories have been initialized-
Methods 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 Detail
-
logger
protected static final org.jboss.logging.Logger logger
-
config
protected Config.Scope config
-
cacheManager
protected org.infinispan.manager.EmbeddedCacheManager cacheManager
-
remoteCacheProvider
protected RemoteCacheProvider remoteCacheProvider
-
containerManaged
protected boolean containerManaged
-
-
Method Detail
-
create
public InfinispanConnectionProvider create(KeycloakSession session)
- 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
public String getId()
- Specified by:
getId
in interfaceProviderFactory<InfinispanConnectionProvider>
-
init
public void init(Config.Scope config)
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
public void postInit(KeycloakSessionFactory factory)
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
-
-