Class AnnotationGrpcServiceDiscoverer
java.lang.Object
net.devh.boot.grpc.server.service.AnnotationGrpcServiceDiscoverer
- All Implemented Interfaces:
GrpcServiceDiscoverer
,Aware
,ApplicationContextAware
public class AnnotationGrpcServiceDiscoverer
extends Object
implements ApplicationContextAware, GrpcServiceDiscoverer
A
GrpcServiceDiscoverer
that searches for beans with the GrpcService
annotations.- Since:
- 5/17/16
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFind the grpc services that should provided by the server.void
setApplicationContext
(ApplicationContext applicationContext)
-
Constructor Details
-
AnnotationGrpcServiceDiscoverer
public AnnotationGrpcServiceDiscoverer()
-
-
Method Details
-
setApplicationContext
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
-
findGrpcServices
Description copied from interface:GrpcServiceDiscoverer
Find the grpc services that should provided by the server.- Specified by:
findGrpcServices
in interfaceGrpcServiceDiscoverer
- Returns:
- The grpc services that should be provided. Never null.
-