Class AutoAddScopeBuildItem

java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.arc.deployment.AutoAddScopeBuildItem

public final class AutoAddScopeBuildItem extends io.quarkus.builder.item.MultiBuildItem
This build item can be used to turn a class that is not annotated with a CDI scope annotation into a bean, i.e. the default scope annotation is added automatically if all conditions are met.
  • Method Details

    • builder

      public static AutoAddScopeBuildItem.Builder builder()
    • isContainerServicesRequired

      public boolean isContainerServicesRequired()
    • getDefaultScope

      public org.jboss.jandex.DotName getDefaultScope()
    • isUnremovable

      public boolean isUnremovable()
    • getReason

      public String getReason()
    • getPriority

      public int getPriority()
    • getScopeAlreadyAdded

      public BiConsumer<org.jboss.jandex.DotName,String> getScopeAlreadyAdded()
    • test

      public boolean test(org.jboss.jandex.ClassInfo clazz, Collection<org.jboss.jandex.AnnotationInstance> annotations, org.jboss.jandex.IndexView index)