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

io.deephaven.uri.resolver.UriResolversInstance Maven / Gradle / Ivy

There is a newer version: 0.36.1
Show newest version
/**
 * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
 */
package io.deephaven.uri.resolver;

import java.util.Objects;

public class UriResolversInstance {
    private static UriResolvers resolvers;

    public static void init(UriResolvers instance) {
        synchronized (UriResolversInstance.class) {
            if (resolvers != null) {
                throw new IllegalStateException("Can only initialize UriResolversInstance once");
            }
            resolvers = instance;
        }
    }

    public static UriResolvers get() {
        return Objects.requireNonNull(resolvers);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy