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

io.deephaven.server.notebook.FilesystemStorageServiceModule Maven / Gradle / Ivy

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

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;

/**
 * gRPC Storage Service implementation based on the filesystem.
 */
@Module
public interface FilesystemStorageServiceModule {
    @Provides
    @IntoSet
    static BindableService bindStorageServiceGrpcImpl(
            AuthorizationProvider authProvider, FilesystemStorageServiceGrpcImpl instance) {
        return new AuthorizationWrappedGrpcBinding<>(
                authProvider.getStorageServiceAuthWiring(), instance);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy