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

grpcstarter.server.ConditionOnGrpcServerEnabled Maven / Gradle / Ivy

package grpcstarter.server;

import io.grpc.BindableService;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;

/**
 * @author Freeman
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@ConditionalOnClass(BindableService.class)
@ConditionalOnProperty(prefix = GrpcServerProperties.PREFIX, name = "enabled", matchIfMissing = true)
public @interface ConditionOnGrpcServerEnabled {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy