org.keycloak.connections.infinispan

## Class DefaultInfinispanConnectionProviderFactory

- java.lang.Object
- - org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory

- All Implemented Interfaces:
    InfinispanConnectionProviderFactory, ProviderFactory<InfinispanConnectionProvider>

      public class DefaultInfinispanConnectionProviderFactory
      extends Object
      implements InfinispanConnectionProviderFactory

  Author:
    Stian Thorgersen

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected org.infinispan.manager.EmbeddedCacheManager` | `cacheManager`
    `protected Config.Scope` | `config`
    `protected boolean` | `containerManaged`
    `protected static org.jboss.logging.Logger` | `logger`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultInfinispanConnectionProviderFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()` This is called when the server shuts down.
    `InfinispanConnectionProvider` | `create(KeycloakSession session)`
    `String` | `getId()`
    `void` | `init(Config.Scope config)` Only called once when the factory is first created.
    `protected void` | `initContainerManaged(String cacheContainerLookup)`
    `protected void` | `initEmbedded()`
    `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`

- - ### Field Detail

    - #### logger

          protected static final org.jboss.logging.Logger logger

    - #### config

          protected Config.Scope config

    - #### cacheManager

          protected org.infinispan.manager.EmbeddedCacheManager cacheManager

    - #### containerManaged

          protected boolean containerManaged

  - ### Constructor Detail

    - #### DefaultInfinispanConnectionProviderFactory

          public DefaultInfinispanConnectionProviderFactory()

  - ### Method Detail

    - #### create

          public InfinispanConnectionProvider create(KeycloakSession session)

      Specified by:
        `create` in interface `ProviderFactory<InfinispanConnectionProvider>`

    - #### close

          public void close()

      Description copied from interface: `ProviderFactory`
      This is called when the server shuts down.
      Specified by:
        `close` in interface `ProviderFactory<InfinispanConnectionProvider>`

    - #### getId

          public String getId()

      Specified by:
        `getId` in interface `ProviderFactory<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 interface `ProviderFactory<InfinispanConnectionProvider>`

    - #### postInit

          public void postInit(KeycloakSessionFactory factory)

      Description copied from interface: `ProviderFactory`
      Called after all provider factories have been initialized
      Specified by:
        `postInit` in interface `ProviderFactory<InfinispanConnectionProvider>`

    - #### lazyInit

          protected void lazyInit()

    - #### initContainerManaged

          protected void initContainerManaged(String cacheContainerLookup)

    - #### initEmbedded

          protected void initEmbedded()

Copyright © 2016 JBoss by Red Hat. All rights reserved.