Class GRpcServicesRegistry

java.lang.Object
org.lognet.springboot.grpc.GRpcServicesRegistry
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class GRpcServicesRegistry extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
  • Constructor Details

    • GRpcServicesRegistry

      public GRpcServicesRegistry()
  • Method Details

    • getServiceNameToServiceBeanMap

      public Map<String,​io.grpc.BindableService> getServiceNameToServiceBeanMap()
      Returns:
      service name to grpc service bean
    • getBeanNameToServiceBeanMap

      public Map<String,​io.grpc.BindableService> getBeanNameToServiceBeanMap()
      Returns:
      spring bean name to grpc service bean
    • getGrpServiceMethod

      public GRpcServicesRegistry.GrpcServiceMethod getGrpServiceMethod(io.grpc.MethodDescriptor<?,​?> descriptor)
    • getMethodDescriptor

      public io.grpc.MethodDescriptor<?,​?> getMethodDescriptor(Method method)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException