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

io.deephaven.server.config.ConfigServiceModule Maven / Gradle / Ivy

The newest version!
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.server.config;

import dagger.Module;
import dagger.Provides;
import dagger.multibindings.IntoSet;
import io.deephaven.server.auth.AuthorizationProvider;
import io.deephaven.server.util.AuthorizationWrappedGrpcBinding;
import io.grpc.BindableService;

@Module
public interface ConfigServiceModule {
    @Provides
    @IntoSet
    static BindableService bindConfigServiceGrpcImpl(
            AuthorizationProvider authProvider, ConfigServiceGrpcImpl instance) {
        return new AuthorizationWrappedGrpcBinding<>(
                authProvider.getConfigServiceAuthWiring(), instance);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy