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

io.deephaven.engine.context.QueryLibraryImportsServiceLoader Maven / Gradle / Ivy

//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.engine.context;

import java.util.LinkedHashSet;
import java.util.ServiceLoader;
import java.util.Set;

public class QueryLibraryImportsServiceLoader implements QueryLibraryImports {

    @Override
    public Set packages() {
        Set packages = new LinkedHashSet<>();
        for (QueryLibraryImports qli : ServiceLoader.load(QueryLibraryImports.class)) {
            packages.addAll(qli.packages());
        }
        return packages;
    }

    @Override
    public Set> classes() {
        Set> classes = new LinkedHashSet<>();
        for (QueryLibraryImports qli : ServiceLoader.load(QueryLibraryImports.class)) {
            classes.addAll(qli.classes());
        }
        return classes;
    }

    @Override
    public Set> statics() {
        Set> statics = new LinkedHashSet<>();
        for (QueryLibraryImports qli : ServiceLoader.load(QueryLibraryImports.class)) {
            statics.addAll(qli.statics());
        }
        return statics;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy