@ ConditionalOnProperty ( prefix = "grpc.server" , name = "inProcessName" ) @ Bean public InProcessGrpcServerFactory inProcessGrpcServerFactory ( final GrpcServerProperties properties , final GrpcServiceDiscoverer serviceDiscoverer ) { final InProcessGrpcServerFactory factory = new InProcessGrpcServerFactory ( properties ) ; for ( final GrpcServiceDefinition service : serviceDiscoverer . findGrpcServices ( ) ) { factory . addService ( service ) ; } return factory ; }
Creates a GrpcServerFactory using the in - process - server if a name is specified .