Class JvmOptionsBuilder

java.lang.Object
io.quarkus.bootstrap.model.JvmOptionsBuilder

public class JvmOptionsBuilder extends Object
JVM arguments builder
  • Method Details

    • isExtensionDevModeJvmOptionProperty

      public static boolean isExtensionDevModeJvmOptionProperty(String name)
    • addFromQuarkusExtensionProperty

      public void addFromQuarkusExtensionProperty(String propertyName, String value)
    • add

      public JvmOptionsBuilder add(String name)
      Adds a standard option without a value.
      Parameters:
      name - option name without the starting dashes
      Returns:
      this builder instance
    • add

      public JvmOptionsBuilder add(String name, String value)
      Adds a standard option with a value.
      Parameters:
      name - option name without the starting dashes
      value - option value, must not be null or black
      Returns:
      this builder instance
    • addAll

      public JvmOptionsBuilder addAll(String name, Collection<String> values)
      Adds a standard option with multiple values.
      Parameters:
      name - option name without the starting dashes
      values - option values
      Returns:
      this builder instance
    • addXxOption

      public JvmOptionsBuilder addXxOption(String name, String value)
      Adds a non-standard option that should be prefixed with -XX: when added to the command line with a value.
      Parameters:
      name - option name without the starting dashes
      value - option value, must not be null or black
      Returns:
      this builder instance
    • addAll

      public JvmOptionsBuilder addAll(JvmOptions options)
      Adds JVM options with their values.
      Parameters:
      options - options to add
      Returns:
      this builder instance
    • getOptions

      public Collection<JvmOption> getOptions()
      Collection of currently configured options.
      Returns:
      collection of currently configured options
    • contains

      public boolean contains(String optionName)
      Checks whether an option with a given name is set.
      Parameters:
      optionName - option name
      Returns:
      true in case the option is set, otherwise - false
    • build

      public JvmOptions build()
      Finalizes a collection of JVM options by creating an instance of JvmOptions.
      Returns:
      new instance of JvmOptions with all the configured options