Class GrpcCdiExtension
java.lang.Object
io.helidon.microprofile.grpc.core.GrpcCdiExtension
- All Implemented Interfaces:
- Extension
An extension that processes beans as they are discovered.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbeforeBean(ProcessAnnotatedType<?> event) Determine whether a discovered bean has a superclass or implements an interface that is annotated withGrpcand if so then also annotate the bean with the same annotation.
- 
Constructor Details- 
GrpcCdiExtensionpublic GrpcCdiExtension()
 
- 
- 
Method Details- 
beforeBeanDetermine whether a discovered bean has a superclass or implements an interface that is annotated withGrpcand if so then also annotate the bean with the same annotation.This is required so that we can support the use-case where an interface has been annotated with Grpcbut the implementation class has not but the implementation class is annotated with a bean discovering annotation such asApplicationScoped. We need to make sure that the gRPC server can locate beans so we add theGrpcfrom the interface to the bean.- Parameters:
- event- the- ProcessAnnotatedTypeevent
 
 
-