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.voidsetApplicationContext(ApplicationContext applicationContext)
-
Constructor Details
-
AnnotationGrpcServiceDiscoverer
public AnnotationGrpcServiceDiscoverer()
-
-
Method Details
-
setApplicationContext
- Specified by:
setApplicationContextin interfaceApplicationContextAware
-
findGrpcServices
Description copied from interface:GrpcServiceDiscovererFind the grpc services that should provided by the server.- Specified by:
findGrpcServicesin interfaceGrpcServiceDiscoverer- Returns:
- The grpc services that should be provided. Never null.
-