Codota Logo
DefaultKeycloakSessionFactory.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.keycloak.services.DefaultKeycloakSessionFactory
constructor

Best Java code snippets using org.keycloak.services.DefaultKeycloakSessionFactory.<init> (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.keycloak/keycloak-model-jpa

@Override
public void setUp() throws SetupException {
  this.kcSession = ThreadLocalSessionContext.getCurrentSession();
  if (this.kcSession == null) {
    // Probably running Liquibase from maven plugin. Try to create kcSession programmatically
    logger.info("No KeycloakSession provided in ThreadLocal. Initializing KeycloakSessionFactory");
    try {
      DefaultKeycloakSessionFactory factory = new DefaultKeycloakSessionFactory();
      factory.init();
      this.kcSession = factory.create();
    } catch (Exception e) {
      throw new SetupException("Exception when initializing factory", e);
    }
  }
}
origin: org.keycloak/keycloak-connections-jpa-liquibase

@Override
public void setUp() throws SetupException {
  this.kcSession = ThreadLocalSessionContext.getCurrentSession();
  if (this.kcSession == null) {
    // Probably running Liquibase from maven plugin. Try to create kcSession programmatically
    logger.info("No KeycloakSession provided in ThreadLocal. Initializing KeycloakSessionFactory");
    try {
      DefaultKeycloakSessionFactory factory = new DefaultKeycloakSessionFactory();
      factory.init();
      this.kcSession = factory.create();
    } catch (Exception e) {
      throw new SetupException("Exception when initializing factory", e);
    }
  }
}
org.keycloak.servicesDefaultKeycloakSessionFactory<init>

Popular methods of DefaultKeycloakSessionFactory

  • create
  • init

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now