Class ExecutionModelAnnotationsAllowedBuildItem

java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.deployment.execannotations.ExecutionModelAnnotationsAllowedBuildItem

public final class ExecutionModelAnnotationsAllowedBuildItem extends MultiBuildItem
Carries a predicate that identifies methods that can have annotations which affect the execution model (@Blocking, @NonBlocking, @RunOnVirtualThread).

Used to detect wrong usage of these annotations, as they are implemented directly by the various frameworks and may only be put on "entrypoint" methods. Placing these annotations on methods that can only be invoked by application code is always wrong.

  • Constructor Details

    • ExecutionModelAnnotationsAllowedBuildItem

      public ExecutionModelAnnotationsAllowedBuildItem(Predicate<org.jboss.jandex.MethodInfo> predicate)
  • Method Details

    • matches

      public boolean matches(org.jboss.jandex.MethodInfo method)