All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.datasource.runtime.devui.DatasourceJsonRpcService Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show newest version
package io.quarkus.datasource.runtime.devui;

import java.util.ServiceLoader;

import jakarta.enterprise.context.ApplicationScoped;

import io.quarkus.datasource.runtime.DatabaseSchemaProvider;

@ApplicationScoped
public class DatasourceJsonRpcService {

    public boolean reset(String ds) {
        ServiceLoader dbs = ServiceLoader.load(DatabaseSchemaProvider.class,
                Thread.currentThread().getContextClassLoader());
        for (DatabaseSchemaProvider i : dbs) {
            i.resetDatabase(ds);
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy