Class ResteasyServerCommonProcessor.ResteasyConfig
- java.lang.Object
-
- io.quarkus.resteasy.server.common.deployment.ResteasyServerCommonProcessor.ResteasyConfig
-
- Enclosing class:
- ResteasyServerCommonProcessor
@ConfigRoot(phase=BUILD_TIME) static final class ResteasyServerCommonProcessor.ResteasyConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleanbuildTimeConditionAwareWhether annotations such `@IfBuildTimeProfile`, `@IfBuildTimeProperty` and friends will be taken into account when used on JAX-RS classes.(package private) booleanignoreApplicationClassesIgnore all explicit JAX-RSApplicationclasses.Optional<Boolean>metricsEnabledDeprecated, for removal: This API element is subject to removal in a future version.Usequarkus.smallrye-metrics.jaxrs.enabledinstead.(package private) StringpathSet this to override the default path for JAX-RS resources if there are no annotated application classes.(package private) booleansingletonResourcesIf this is true then JAX-RS will use only a single instance of a resource class to service all requests.
-
Constructor Summary
Constructors Constructor Description ResteasyConfig()
-
-
-
Field Detail
-
singletonResources
@ConfigItem(defaultValue="true") boolean singletonResources
If this is true then JAX-RS will use only a single instance of a resource class to service all requests.If this is false then it will create a new instance of the resource per request.
If the resource class has an explicit CDI scope annotation then the value of this annotation will always be used to control the lifecycle of the resource class.
IMPLEMENTATION NOTE:
jakarta.ws.rs.Pathturns into a CDI stereotype with singleton scope. As a result, if a user annotates a JAX-RS resource with a stereotype which has a different default scope the deployment fails with IllegalStateException.
-
path
@ConfigItem(defaultValue="/") @ConvertWith(io.quarkus.runtime.configuration.NormalizeRootHttpPathConverter.class) String path
Set this to override the default path for JAX-RS resources if there are no annotated application classes. This path is specified with a leading /, but is resolved relative to quarkus.http.root-path.- If quarkus.http.root-path=/ and
quarkus.resteasy.path=/bar, the JAX-RS resource path will be /bar - If quarkus.http.root-path=/foo and
quarkus.resteasy.path=/bar, the JAX-RS resource path will be /foo/bar
- If quarkus.http.root-path=/ and
-
metricsEnabled
@Deprecated(forRemoval=true) @ConfigItem(name="metrics.enabled") public Optional<Boolean> metricsEnabled
Deprecated, for removal: This API element is subject to removal in a future version.Usequarkus.smallrye-metrics.jaxrs.enabledinstead.Whether detailed JAX-RS metrics should be enabled if the smallrye-metrics extension is present.
-
ignoreApplicationClasses
@ConfigItem(defaultValue="false") boolean ignoreApplicationClasses
Ignore all explicit JAX-RSApplicationclasses. As multiple JAX-RS applications are not supported, this can be used to effectively merge all JAX-RS applications.
-
buildTimeConditionAware
@ConfigItem(defaultValue="true") boolean buildTimeConditionAware
Whether annotations such `@IfBuildTimeProfile`, `@IfBuildTimeProperty` and friends will be taken into account when used on JAX-RS classes.
-
-