internal.sdmxdl.web.spi.NoOpRegistry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdmx-dl-api Show documentation
Show all versions of sdmx-dl-api Show documentation
Easily download official statistics - API
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();
}
}