protected void configureServices ( final T builder ) { // support health check if ( this . properties . isHealthServiceEnabled ( ) ) { builder . addService ( this . healthStatusManager . getHealthService ( ) ) ; } if ( this . properties . isReflectionServiceEnabled ( ) ) { builder . addService ( ProtoReflectionService . newInstance ( ) ) ; } for ( final GrpcServiceDefinition service : this . serviceList ) { final String serviceName = service . getDefinition ( ) . getServiceDescriptor ( ) . getName ( ) ; log . info ( "Registered gRPC service: " + serviceName + ", bean: " + service . getBeanName ( ) + ", class: " + service . getBeanClazz ( ) . getName ( ) ) ; builder . addService ( service . getDefinition ( ) ) ; this . healthStatusManager . setStatus ( serviceName , HealthCheckResponse . ServingStatus . SERVING ) ; } }
Configures the services that should be served by the server .