- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
@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); } } }
@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); } } }