Class GrpcCdiExtension
- java.lang.Object
-
- io.helidon.microprofile.grpc.core.GrpcCdiExtension
-
-
Constructor Summary
Constructors Constructor Description GrpcCdiExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeBean(ProcessAnnotatedType<?> event)
Determine whether a discovered bean has a superclass or implements an interface that is annotated withGrpc
and if so then also annotate the bean with the same annotation.
-
-
-
Method Detail
-
beforeBean
public void beforeBean(@Observes ProcessAnnotatedType<?> event)
Determine whether a discovered bean has a superclass or implements an interface that is annotated withGrpc
and 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
Grpc
but 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 theGrpc
from the interface to the bean.- Parameters:
event
- theProcessAnnotatedType
event
-
-