Annotation Interface ConditionalOnGrpcServerEnabled


@Retention(RUNTIME) @Target({TYPE,METHOD}) @Conditional(org.springframework.boot.grpc.server.autoconfigure.OnEnabledGrpcServerCondition.class) public @interface ConditionalOnGrpcServerEnabled
@Conditional that checks whether the gRPC server and optionally a specific gRPC service is enabled. It matches if the value of the spring.grpc.server.enabled property is not explicitly set to false and if the gRPC service name is set, that the spring.grpc.server.<service-name>.enabled property is not explicitly set to false.
Since:
1.0.0
Author:
Freeman Freeman, Chris Bono
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Name of the gRPC service.
  • Element Details

    • value

      String value
      Name of the gRPC service.
      Returns:
      the name of the gRPC service
      Default:
      ""