Skip to content

Commit

Permalink
Make sure the gRPC server is started after synthetic beans init
Browse files Browse the repository at this point in the history
  • Loading branch information
mkouba committed Jun 3, 2021
1 parent 0641dc7 commit 1807506
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
import io.quarkus.arc.deployment.AnnotationsTransformerBuildItem;
import io.quarkus.arc.deployment.CustomScopeAnnotationsBuildItem;
import io.quarkus.arc.deployment.SyntheticBeansRuntimeInitBuildItem;
import io.quarkus.arc.deployment.ValidationPhaseBuildItem;
import io.quarkus.arc.processor.AnnotationsTransformer;
import io.quarkus.arc.processor.BeanInfo;
Expand All @@ -38,6 +39,7 @@
import io.quarkus.deployment.IsNormal;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.annotations.Consume;
import io.quarkus.deployment.annotations.ExecutionTime;
import io.quarkus.deployment.annotations.Record;
import io.quarkus.deployment.builditem.BytecodeTransformerBuildItem;
Expand Down Expand Up @@ -314,6 +316,7 @@ void registerBeans(BuildProducer<AdditionalBeanBuildItem> beans,

@BuildStep
@Record(value = ExecutionTime.RUNTIME_INIT)
@Consume(SyntheticBeansRuntimeInitBuildItem.class)
ServiceStartBuildItem initializeServer(GrpcServerRecorder recorder, GrpcConfiguration config,
ShutdownContextBuildItem shutdown, List<BindableServiceBuildItem> bindables,
LaunchModeBuildItem launchModeBuildItem,
Expand Down

0 comments on commit 1807506

Please sign in to comment.