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

org.joeyb.undercarriage.grpc.plugins.GrpcPluginBase Maven / Gradle / Ivy

package org.joeyb.undercarriage.grpc.plugins;

import com.google.common.collect.ImmutableList;

import io.grpc.ServerInterceptor;
import io.grpc.ServerServiceDefinition;

import org.joeyb.undercarriage.core.ApplicationResolver;
import org.joeyb.undercarriage.core.config.ConfigContext;
import org.joeyb.undercarriage.core.plugins.PluginBase;
import org.joeyb.undercarriage.grpc.config.GrpcConfigSection;

/**
 * {@code GrpcPluginBase} provides a base default implementation for {@link GrpcPlugin}.
 *
 * @param  the app's config type
 */
public abstract class GrpcPluginBase
        extends PluginBase
        implements GrpcPlugin {

    protected GrpcPluginBase(ApplicationResolver applicationResolver, ConfigContext configContext) {
        super(applicationResolver, configContext);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public Iterable serverServiceDefinitions() {
        return ImmutableList.of();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public Iterable serverInterceptors() {
        return ImmutableList.of();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy