Search in sources :

Example 1 with CustomChangeLogHistoryService

use of org.keycloak.connections.jpa.updater.liquibase.conn.CustomChangeLogHistoryService in project keycloak by keycloak.

the class LiquibaseJpaUpdaterProvider method resetLiquibaseServices.

private void resetLiquibaseServices(Liquibase liquibase) {
    Method resetServices = Reflections.findDeclaredMethod(Liquibase.class, "resetServices");
    Reflections.invokeMethod(true, resetServices, liquibase);
    ChangeLogHistoryServiceFactory.getInstance().register(new CustomChangeLogHistoryService());
}
Also used : CustomChangeLogHistoryService(org.keycloak.connections.jpa.updater.liquibase.conn.CustomChangeLogHistoryService) Method(java.lang.reflect.Method)

Example 2 with CustomChangeLogHistoryService

use of org.keycloak.connections.jpa.updater.liquibase.conn.CustomChangeLogHistoryService in project keycloak by keycloak.

the class QuarkusJpaUpdaterProvider method resetLiquibaseServices.

private void resetLiquibaseServices(Liquibase liquibase) {
    Method resetServices = Reflections.findDeclaredMethod(Liquibase.class, "resetServices");
    Reflections.invokeMethod(true, resetServices, liquibase);
    ChangeLogHistoryServiceFactory.getInstance().register(new CustomChangeLogHistoryService());
}
Also used : CustomChangeLogHistoryService(org.keycloak.connections.jpa.updater.liquibase.conn.CustomChangeLogHistoryService) Method(java.lang.reflect.Method)

Aggregations

Method (java.lang.reflect.Method)2 CustomChangeLogHistoryService (org.keycloak.connections.jpa.updater.liquibase.conn.CustomChangeLogHistoryService)2