Package io.quarkus.arc.deployment
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AutoAddScopeBuildItem.Builder
static interface
AutoAddScopeBuildItem.MatchPredicate
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AutoAddScopeBuildItem.Builder
builder()
org.jboss.jandex.DotName
getDefaultScope()
int
getPriority()
String
getReason()
BiConsumer<org.jboss.jandex.DotName,String>
getScopeAlreadyAdded()
boolean
isContainerServicesRequired()
boolean
isUnremovable()
boolean
test(org.jboss.jandex.ClassInfo clazz, Collection<org.jboss.jandex.AnnotationInstance> annotations, org.jboss.jandex.IndexView index)
-
-
-
Method Detail
-
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)
-
-