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 Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetGrpServiceMethod(io.grpc.MethodDescriptor<?,?> descriptor)io.grpc.MethodDescriptor<?,?>getMethodDescriptor(Method method)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
GRpcServicesRegistry
public GRpcServicesRegistry()
-
-
Method Details
-
getServiceNameToServiceBeanMap
- Returns:
- service name to grpc service bean
-
getBeanNameToServiceBeanMap
- Returns:
- spring bean name to grpc service bean
-
getGrpServiceMethod
public GRpcServicesRegistry.GrpcServiceMethod getGrpServiceMethod(io.grpc.MethodDescriptor<?,?> descriptor) -
getMethodDescriptor
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
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
-