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.void
setApplicationContext
(ApplicationContext applicationContext)
-
Constructor Details
-
AnnotationGrpcCodecDiscoverer
public AnnotationGrpcCodecDiscoverer()
-
-
Method Details
-
setApplicationContext
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
-
findGrpcCodecs
Description copied from interface:GrpcCodecDiscoverer
Find the grpc codecs that should uses by the client/server.- Specified by:
findGrpcCodecs
in interfaceGrpcCodecDiscoverer
- Returns:
- The grpc codecs that should be provided. Never null.
-