Package io.quarkus.bootstrap.model
Class JvmOptionsBuilder
java.lang.Object
io.quarkus.bootstrap.model.JvmOptionsBuilder
JVM arguments builder
-
Method Summary
Modifier and TypeMethodDescriptionAdds a standard option without a value.Adds a standard option with a value.addAll(JvmOptions options) Adds JVM options with their values.addAll(String name, Collection<String> values) Adds a standard option with multiple values.voidaddFromQuarkusExtensionProperty(String propertyName, String value) 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.build()Finalizes a collection of JVM options by creating an instance ofJvmOptions.booleanChecks whether an option with a given name is set.Collection of currently configured options.static boolean
-
Method Details
-
isExtensionDevModeJvmOptionProperty
-
addFromQuarkusExtensionProperty
-
add
Adds a standard option without a value.- Parameters:
name- option name without the starting dashes- Returns:
- this builder instance
-
add
Adds a standard option with a value.- Parameters:
name- option name without the starting dashesvalue- option value, must not be null or black- Returns:
- this builder instance
-
addAll
Adds a standard option with multiple values.- Parameters:
name- option name without the starting dashesvalues- option values- Returns:
- this builder instance
-
addXxOption
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 dashesvalue- option value, must not be null or black- Returns:
- this builder instance
-
addAll
Adds JVM options with their values.- Parameters:
options- options to add- Returns:
- this builder instance
-
getOptions
Collection of currently configured options.- Returns:
- collection of currently configured options
-
contains
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
Finalizes a collection of JVM options by creating an instance ofJvmOptions.- Returns:
- new instance of
JvmOptionswith all the configured options
-