public static class AutoAddScopeBuildItem.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
AutoAddScopeBuildItem |
build() |
AutoAddScopeBuildItem.Builder |
containsAnnotations(org.jboss.jandex.DotName... annotationNames)
The class or any of its element must be annotated with the given annotation.
|
AutoAddScopeBuildItem.Builder |
defaultScope(BuiltinScope scope)
The scope annotation added to the class.
|
AutoAddScopeBuildItem.Builder |
defaultScope(org.jboss.jandex.DotName scopeAnnotationName)
The scope annotation added to the class.
|
AutoAddScopeBuildItem.Builder |
implementsInterface(org.jboss.jandex.DotName interfaceName)
The class must directly or indirectly implement the given interface.
|
AutoAddScopeBuildItem.Builder |
isAnnotatedWith(org.jboss.jandex.DotName annotationName)
The class must be annotated with the given annotation.
|
AutoAddScopeBuildItem.Builder |
match(AutoAddScopeBuildItem.MatchPredicate predicate)
Set a custom predicate.
|
AutoAddScopeBuildItem.Builder |
reason(String reason)
Specify an optional reason description that is used in log messages.
|
AutoAddScopeBuildItem.Builder |
requiresContainerServices()
At least one injection point or lifecycle callback must be declared in the class hierarchy.
|
AutoAddScopeBuildItem.Builder |
unremovable()
The bean will be unremovable.
|
public AutoAddScopeBuildItem.Builder requiresContainerServices()
Note that the detection algorithm is just the best effort. Some inheritance rules defined by the spec are not followed, e.g. per spec an initializer method is only inherited if not overriden. This method merely scans the annotations.
public AutoAddScopeBuildItem.Builder unremovable()
ArcConfig.removeUnusedBeanspublic AutoAddScopeBuildItem.Builder match(AutoAddScopeBuildItem.MatchPredicate predicate)
predicate - public AutoAddScopeBuildItem.Builder isAnnotatedWith(org.jboss.jandex.DotName annotationName)
The final predicate is a short-circuiting logical AND of the previous predicate (if any) and this condition.
annotationName - public AutoAddScopeBuildItem.Builder containsAnnotations(org.jboss.jandex.DotName... annotationNames)
The final predicate is a short-circuiting logical AND of the previous predicate (if any) and this condition.
annotationNames - public AutoAddScopeBuildItem.Builder implementsInterface(org.jboss.jandex.DotName interfaceName)
The final predicate is a short-circuiting logical AND of the previous predicate (if any) and this condition.
interfaceName - public AutoAddScopeBuildItem.Builder defaultScope(org.jboss.jandex.DotName scopeAnnotationName)
scopeAnnotationName - public AutoAddScopeBuildItem.Builder defaultScope(BuiltinScope scope)
scope - public AutoAddScopeBuildItem.Builder reason(String reason)
reason - public AutoAddScopeBuildItem build()
Copyright © 2021 JBoss by Red Hat. All rights reserved.