Class Substitutions.Target_SystemPropertiesSupport

java.lang.Object
io.quarkus.runtime.configuration.Substitutions.Target_SystemPropertiesSupport
Enclosing class:
Substitutions

static final class Substitutions.Target_SystemPropertiesSupport extends Object
The GraalVM provides a lazy implementation to access system properties that are expensive to calculate. Still, it ends up calculating all the properties anyway when System.getProperties() is called, which is a common call. Used, for instance, to get the list of names in Quarkus configuration, but also in GetPropertyAction#privilegedGetProperties() is used in many JVM APIs, for instance, when determining the default timezone. Such initialization may cost a few milliseconds of the native image startup time (measured between 5-6, depending on the system).

This Substitution provides a delegate to the GraalVM lazy implementation, expanding the lazy check to each individual method of Properties.

  • Constructor Details

    • Target_SystemPropertiesSupport

      Target_SystemPropertiesSupport()
  • Method Details

    • getProperties

      public Properties getProperties()