public final class CustomScopeAnnotationsBuildItem
extends io.quarkus.builder.item.SimpleBuildItem
| Constructor and Description |
|---|
CustomScopeAnnotationsBuildItem(Set<org.jboss.jandex.DotName> customScopeNames) |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.jboss.jandex.DotName> |
getCustomScopeNames()
Returns a collection of all known custom scopes represented as
DotName. |
boolean |
isCustomScopeDeclaredOn(org.jboss.jandex.ClassInfo clazz)
Returns true if the given class has some of the custom scope annotations, false otherwise.
|
boolean |
isCustomScopeIn(Collection<org.jboss.jandex.AnnotationInstance> annotations) |
boolean |
isScopeDeclaredOn(org.jboss.jandex.ClassInfo clazz)
Returns true if the given class has some scope annotations, false otherwise.
|
boolean |
isScopeIn(Collection<org.jboss.jandex.AnnotationInstance> annotations) |
CustomScopeAnnotationsBuildItem(Set<org.jboss.jandex.DotName> customScopeNames)
public Collection<org.jboss.jandex.DotName> getCustomScopeNames()
DotName.public boolean isCustomScopeDeclaredOn(org.jboss.jandex.ClassInfo clazz)
getCustomScopeNames().
In order to check for presence of any scope annotation (including built-in ones),
see isScopeDeclaredOn(ClassInfo).clazz - Class to check for annotationspublic boolean isCustomScopeIn(Collection<org.jboss.jandex.AnnotationInstance> annotations)
annotations - true if the collection contains a custom scope annotation, false otherwisepublic boolean isScopeDeclaredOn(org.jboss.jandex.ClassInfo clazz)
getCustomScopeNames().clazz - Class to check for annotationspublic boolean isScopeIn(Collection<org.jboss.jandex.AnnotationInstance> annotations)
annotations - true if the collection contains any scope annotation, false otherwiseisCustomScopeIn(Collection)Copyright © 2021 JBoss by Red Hat. All rights reserved.