Package net.devh.boot.grpc.common.codec
Class AnnotationGrpcCodecDiscoverer
java.lang.Object
net.devh.boot.grpc.common.codec.AnnotationGrpcCodecDiscoverer
- All Implemented Interfaces:
GrpcCodecDiscoverer,Aware,ApplicationContextAware
public class AnnotationGrpcCodecDiscoverer
extends Object
implements ApplicationContextAware, GrpcCodecDiscoverer
A
GrpcCodecDiscoverer that searches for beans with the GrpcCodec annotations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFind the grpc codecs that should uses by the client/server.voidsetApplicationContext(ApplicationContext applicationContext)
-
Constructor Details
-
AnnotationGrpcCodecDiscoverer
public AnnotationGrpcCodecDiscoverer()
-
-
Method Details
-
setApplicationContext
- Specified by:
setApplicationContextin interfaceApplicationContextAware
-
findGrpcCodecs
Description copied from interface:GrpcCodecDiscovererFind the grpc codecs that should uses by the client/server.- Specified by:
findGrpcCodecsin interfaceGrpcCodecDiscoverer- Returns:
- The grpc codecs that should be provided. Never null.
-