Class DefaultGrpcServiceConfigurer

java.lang.Object
org.springframework.grpc.server.service.DefaultGrpcServiceConfigurer
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, GrpcServiceConfigurer

public class DefaultGrpcServiceConfigurer extends Object implements GrpcServiceConfigurer, org.springframework.beans.factory.InitializingBean
Default GrpcServiceConfigurer implementation that binds and configures services with interceptors.
Author:
Chris Bono
  • Constructor Details

    • DefaultGrpcServiceConfigurer

      public DefaultGrpcServiceConfigurer(org.springframework.context.ApplicationContext applicationContext)
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • configure

      public io.grpc.ServerServiceDefinition configure(GrpcServiceSpec serviceSpec, @Nullable GrpcServerFactory serverFactory)
      Description copied from interface: GrpcServiceConfigurer
      Configure and bind a gRPC server spec resulting in a service definition that can then be added to a gRPC server.
      Specified by:
      configure in interface GrpcServiceConfigurer
      Parameters:
      serviceSpec - the spec containing the info about the service
      serverFactory - the factory that can be used to create a gRPC server, or null if the service is not bound to a specific server factory.
      Returns:
      bound and configured service definition that is ready to be added to a server