Package org.lognet.springboot.grpc
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 java.lang.Object implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGRpcServicesRegistry.GrpcServiceMethod
-
Constructor Summary
Constructors Constructor Description GRpcServicesRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()java.util.Map<java.lang.String,io.grpc.BindableService>getBeanNameToServiceBeanMap()GRpcServicesRegistry.GrpcServiceMethodgetGrpServiceMethod(io.grpc.MethodDescriptor<?,?> descriptor)io.grpc.MethodDescriptor<?,?>getMethodDescriptor(java.lang.reflect.Method method)java.util.Map<java.lang.String,io.grpc.BindableService>getServiceNameToServiceBeanMap()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
getServiceNameToServiceBeanMap
public java.util.Map<java.lang.String,io.grpc.BindableService> getServiceNameToServiceBeanMap()
- Returns:
- service name to grpc service bean
-
getBeanNameToServiceBeanMap
public java.util.Map<java.lang.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(java.lang.reflect.Method method)
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
-