Package io.quarkus.arc.deployment
Class BuildExclusionsBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.SimpleBuildItem
io.quarkus.arc.deployment.BuildExclusionsBuildItem
public final class BuildExclusionsBuildItem
extends io.quarkus.builder.item.SimpleBuildItem
A type of build item that contains only declaring classes, methods and fields that have been annotated with
unsuccessful build time conditions. It aims to be used to manage the exclusion of the annotations thanks to the
build time conditions also known as
IfBuildProfile, UnlessBuildProfile, IfBuildProperty and
UnlessBuildProperty- See Also:
-
io.quarkus.arc.deployment.PreAdditionalBeanBuildTimeConditionBuildItemIfBuildProfileUnlessBuildProfileIfBuildPropertyUnlessBuildProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisExcluded(org.jboss.jandex.AnnotationTarget target) Indicates whether the given target is excluded following the next rules:static StringtargetMapper(org.jboss.jandex.AnnotationTarget target) Converts the given target into a String unique representation.
-
Constructor Details
-
BuildExclusionsBuildItem
-
-
Method Details
-
getExcludedDeclaringClasses
-
getExcludedMethods
-
getExcludedFields
-
isExcluded
public boolean isExcluded(org.jboss.jandex.AnnotationTarget target) Indicates whether the given target is excluded following the next rules:- In case of a class it will check if it is part of the excluded classes
- In case of a method it will check if it is part of the excluded methods and if its declaring class is excluded
- In case of a method parameter it will check if its corresponding method is part of the excluded methods and if its declaring class is excluded
- In case of a field it will check if it is part of the excluded field and if its declaring class is excluded
- In all other cases, it is not excluded
- Parameters:
target- the target to check.- Returns:
trueif the target is excluded,falseotherwise.
-
targetMapper
Converts the given target into a String unique representation.- Parameters:
target- the target to convert.- Returns:
- a unique representation as a
Stringof the target
-