Search in sources :

Example 1 with QuarkusKeycloakSessionFactory

use of org.keycloak.quarkus.runtime.integration.QuarkusKeycloakSessionFactory in project keycloak by keycloak.

the class KeycloakRecorder method configSessionFactory.

public void configSessionFactory(Map<Spi, Map<Class<? extends Provider>, Map<String, Class<? extends ProviderFactory>>>> factories, Map<Class<? extends Provider>, String> defaultProviders, Map<String, ProviderFactory> preConfiguredProviders, Boolean reaugmented) {
    Profile.setInstance(new QuarkusProfile());
    QuarkusKeycloakSessionFactory.setInstance(new QuarkusKeycloakSessionFactory(factories, defaultProviders, preConfiguredProviders, reaugmented));
}
Also used : QuarkusKeycloakSessionFactory(org.keycloak.quarkus.runtime.integration.QuarkusKeycloakSessionFactory)

Example 2 with QuarkusKeycloakSessionFactory

use of org.keycloak.quarkus.runtime.integration.QuarkusKeycloakSessionFactory in project keycloak by keycloak.

the class QuarkusKeycloakApplication method initializeKeycloakSessionFactory.

private void initializeKeycloakSessionFactory() {
    QuarkusKeycloakSessionFactory instance = QuarkusKeycloakSessionFactory.getInstance();
    sessionFactory = instance;
    instance.init();
    sessionFactory.publish(new PostMigrationEvent());
}
Also used : QuarkusKeycloakSessionFactory(org.keycloak.quarkus.runtime.integration.QuarkusKeycloakSessionFactory) PostMigrationEvent(org.keycloak.models.utils.PostMigrationEvent)

Aggregations

QuarkusKeycloakSessionFactory (org.keycloak.quarkus.runtime.integration.QuarkusKeycloakSessionFactory)2 PostMigrationEvent (org.keycloak.models.utils.PostMigrationEvent)1