Class ResteasyServerCommonProcessor.ResteasyConfig

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean buildTimeConditionAware
      Whether annotations such `@IfBuildTimeProfile`, `@IfBuildTimeProperty` and friends will be taken into account when used on JAX-RS classes.
      (package private) boolean ignoreApplicationClasses
      Ignore all explicit JAX-RS Application classes.
      Optional<Boolean> metricsEnabled
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use quarkus.smallrye-metrics.jaxrs.enabled instead.
      (package private) String path
      Set this to override the default path for JAX-RS resources if there are no annotated application classes.
      (package private) boolean singletonResources
      If 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: javax.ws.rs.Path turns 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
      • 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.
        Use quarkus.smallrye-metrics.jaxrs.enabled instead.
        Whether detailed JAX-RS metrics should be enabled if the smallrye-metrics extension is present.

        See MicroProfile Metrics: Optional REST metrics.

      • ignoreApplicationClasses

        @ConfigItem(defaultValue="false")
        boolean ignoreApplicationClasses
        Ignore all explicit JAX-RS Application classes. 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.
    • Constructor Detail

      • ResteasyConfig

        ResteasyConfig()