Class 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 Detail

      • ExecutionModelAnnotationsAllowedBuildItem

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

      • matches

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