@ ConditionalOnMissingBean @ ConditionalOnClass ( name = { "io.netty.channel.Channel" , "io.grpc.netty.NettyServerBuilder" } ) @ Bean public NettyGrpcServerFactory nettyGrpcServerFactory ( final GrpcServerProperties properties , final GrpcServiceDiscoverer serviceDiscoverer , final List < GrpcServerConfigurer > serverConfigurers ) { final NettyGrpcServerFactory factory = new NettyGrpcServerFactory ( properties , serverConfigurers ) ; for ( final GrpcServiceDefinition service : serviceDiscoverer . findGrpcServices ( ) ) { factory . addService ( service ) ; } return factory ; }
Creates a GrpcServerFactory using the non - shaded netty . This is the fallback if the shaded one is not present .