Class DefaultGrpcServiceDiscoverer
java.lang.Object
org.springframework.grpc.server.service.DefaultGrpcServiceDiscoverer
- All Implemented Interfaces:
GrpcServiceDiscoverer
Default
GrpcServiceDiscoverer implementation that finds all
BindableService beans in the application context.- Author:
- Chris Bono
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultGrpcServiceDiscoverer(org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionFind the specs of the available gRPC services.Find the names of the available gRPC services.
-
Constructor Details
-
DefaultGrpcServiceDiscoverer
public DefaultGrpcServiceDiscoverer(org.springframework.context.ApplicationContext applicationContext)
-
-
Method Details
-
findServices
Description copied from interface:GrpcServiceDiscovererFind the specs of the available gRPC services. The spec can then be passed into aservice configurerto bind and configure an actual service definition.- Specified by:
findServicesin interfaceGrpcServiceDiscoverer- Returns:
- list of service specs - empty when no services available
-
listServiceNames
Description copied from interface:GrpcServiceDiscovererFind the names of the available gRPC services.- Specified by:
listServiceNamesin interfaceGrpcServiceDiscoverer- Returns:
- list of service names - empty when no services available
-