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

internal.sdmxdl.web.spi.NoOpRegistry Maven / Gradle / Ivy

The newest version!
package internal.sdmxdl.web.spi;

import lombok.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import sdmxdl.ext.Persistence;
import sdmxdl.web.WebSources;
import sdmxdl.web.spi.Registry;

import java.io.IOException;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.function.BiConsumer;
import java.util.function.Consumer;

public enum NoOpRegistry implements Registry {

    INSTANCE;

    @Override
    public @NonNull String getRegistryId() {
        return "NO_OP";
    }

    @Override
    public int getRegistryRank() {
        return UNKNOWN_REGISTRY_RANK;
    }

    @Override
    public @NonNull WebSources getSources(
            @NonNull List persistences,
            @Nullable Consumer onEvent,
            @Nullable BiConsumer onError) {
        return WebSources.EMPTY;
    }

    @Override
    public @NonNull Collection getRegistryProperties() {
        return Collections.emptyList();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy