@ConfigRoot(phase=BUILD_TIME) public class ArcConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
ALLOWED_REMOVE_UNUSED_BEANS_VALUES |
boolean |
autoInjectFields
If set to true
@Inject is automatically added to all non-static fields that are annotated with
one of the annotations defined by AutoInjectAnnotationBuildItem. |
boolean |
autoProducerMethods
If set to true then
javax.enterprise.inject.Produces is automatically added to all non-void methods that are
annotated with a scope annotation, a stereotype or a qualifier, and are not annotated with Inject or
Produces, and no parameter is annotated with Disposes, Observes or ObservesAsync. |
ConfigProperties.NamingStrategy |
configPropertiesDefaultNamingStrategy
The default naming strategy for
ConfigProperties.NamingStrategy. |
boolean |
detectUnusedFalsePositives
If set to true then the container attempts to detect "unused removed beans" false positives during programmatic lookup at
runtime.
|
boolean |
detectWrongAnnotations
If set to true then the container attempts to detect usage of wrong annotations.
|
ArcDevModeConfig |
devMode
Dev mode configuration.
|
(package private) Map<String,IndexDependencyConfig> |
excludeDependency
Artifacts that should be excluded from discovery.
|
Optional<List<String>> |
excludeTypes
The list of types that should be excluded from discovery.
|
String |
removeUnusedBeans
If set to
all (or true) the container will attempt to remove all unused beans.
If set to none (or false) no beans will ever be removed even if they are unused (according to the
criteria set out
below)
If set to fwk, then all unused beans will be removed, except the unused beans whose classes are declared in
the
application code
|
Optional<List<String>> |
selectedAlternatives
The list of selected alternatives for an application.
|
ArcTestConfig |
test
Test mode configuration.
|
boolean |
transformUnproxyableClasses
If set to true, the bytecode of unproxyable beans will be transformed.
|
Optional<List<String>> |
unremovableTypes
List of types that should be considered unremovable regardless of whether they are directly used or not.
|
| Constructor and Description |
|---|
ArcConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRemoveUnusedBeansFieldValid() |
boolean |
shouldEnableBeanRemoval() |
boolean |
shouldOnlyKeepAppBeans() |
public static final Set<String> ALLOWED_REMOVE_UNUSED_BEANS_VALUES
@ConfigItem(defaultValue="all") public String removeUnusedBeans
all (or true) the container will attempt to remove all unused beans.none (or false) no beans will ever be removed even if they are unused (according to the
criteria set out
below)fwk, then all unused beans will be removed, except the unused beans whose classes are declared in
the
application codeAn unused bean:
Instance injection pointUnremovableBeanBuildItem@ConfigItem(defaultValue="true") public boolean autoInjectFields
@Inject is automatically added to all non-static fields that are annotated with
one of the annotations defined by AutoInjectAnnotationBuildItem.@ConfigItem(defaultValue="true") public boolean transformUnproxyableClasses
@ConfigItem(defaultValue="kebab-case") public ConfigProperties.NamingStrategy configPropertiesDefaultNamingStrategy
ConfigProperties.NamingStrategy. The allowed values are determined
by that enum@ConfigItem public Optional<List<String>> selectedAlternatives
An element value can be:
org.acme.FooClass.getSimpleName(), i.e. Foo.*, i.e. org.acme.*, matches a package.**, i.e. org.acme.**, matches a package that starts with the valueInteger.MAX_VALUE is used for
the relevant bean. The priority declared via Priority or
AlternativePriority is overriden.@ConfigItem(defaultValue="true") public boolean autoProducerMethods
javax.enterprise.inject.Produces is automatically added to all non-void methods that are
annotated with a scope annotation, a stereotype or a qualifier, and are not annotated with Inject or
Produces, and no parameter is annotated with Disposes, Observes or ObservesAsync.@ConfigItem public Optional<List<String>> excludeTypes
An element value can be:
org.acme.FooClass.getSimpleName(), i.e. Foo.*, i.e. org.acme.*, matches a package.**, i.e. org.acme.**, matches a package that starts with the value@ConfigItem public Optional<List<String>> unremovableTypes
Unremovable annotation.
An element value can be:
org.acme.FooClass.getSimpleName(), i.e. Foo.*, i.e. org.acme.*, matches a package.**, i.e. org.acme.**, matches a package that starts with the value#removeUnusedBeans},
io.quarkus.arc.Unremovable}@ConfigItem @ConfigDocSection @ConfigDocMapKey(value="dependency-name") Map<String,IndexDependencyConfig> excludeDependency
These artifacts would be otherwise scanned for beans, i.e. they contain a Jandex index or a beans.xml descriptor.
@ConfigItem(defaultValue="true") public boolean detectUnusedFalsePositives
removeUnusedBeans@ConfigItem(defaultValue="true") public boolean detectWrongAnnotations
A wrong annotation may lead to unexpected behavior in a Quarkus application. A typical example is
@javax.ejb.Singleton which is often confused with @javax.inject.Singleton. As a result a component
annotated with @javax.ejb.Singleton can be completely ignored.
@ConfigItem public ArcDevModeConfig devMode
@ConfigItem public ArcTestConfig test
Copyright © 2021 JBoss by Red Hat. All rights reserved.