Skip to content

Commit

Permalink
Merge pull request quarkusio#17669 from mkouba/grpc-start-after-synth…
Browse files Browse the repository at this point in the history
…etic-beans

Make sure the gRPC server is started after synthetic beans init
  • Loading branch information
gsmet authored Jun 3, 2021
2 parents 0641dc7 + 1807506 commit 89169cb
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 89169cb

Please sign in to comment.