public static class Configuration.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
Configuration.Builder |
addCommandArgument(String arg)
Adds a command argument.
|
Configuration.Builder |
addCommandArguments(String... args)
Adds the arguments to the command line arguments,
|
Configuration.Builder |
addSystemPackage(String systemPackage)
Adds a system package for the module loader.
|
Configuration.Builder |
addSystemPackages(String... systemPackages)
Adds the system packages for the module loader.
|
Configuration |
build()
Creates a new immutable configuration.
|
static Configuration.Builder |
of(File jbossHome)
Creates a new builder for the configuration.
|
static Configuration.Builder |
of(Path jbossHome)
Creates a new builder for the configuration.
|
Configuration.Builder |
setCommandArguments(String... args)
Sets the command line arguments replacing any previously set arguments.
|
Configuration.Builder |
setLoggerHint(Configuration.LoggerHint loggerHint)
Sets a hint for the JBoss Logging facade on which log manager the loggers so delegate to.
|
Configuration.Builder |
setModuleLoader(org.jboss.modules.ModuleLoader moduleLoader)
Sets the module loader.
|
Configuration.Builder |
setModulePath(String modulePath)
Sets the path to the modules for the server.
|
Configuration.Builder |
setSystemPackages(String... systemPackages)
Sets the system packages for the module loader.
|
public static Configuration.Builder of(File jbossHome)
jbossHome - the servers home directorypublic static Configuration.Builder of(Path jbossHome)
jbossHome - the servers home directorypublic Configuration.Builder addCommandArgument(String arg)
arg - the argument to add, if null the argument is ignoredpublic Configuration.Builder addCommandArguments(String... args)
args - the arguments to add, if null the argument is ignoredpublic Configuration.Builder setCommandArguments(String... args)
args - the arguments to set, if null the arguments are clearedpublic Configuration.Builder setLoggerHint(Configuration.LoggerHint loggerHint)
Sets the org.jboss.logging.provider system property and adds the hinted logging module to the list
of system packages.
loggerHint - the logger hintpublic Configuration.Builder setModuleLoader(org.jboss.modules.ModuleLoader moduleLoader)
null a default module loader will be configured and used.moduleLoader - the module loader or null to use the defaultpublic Configuration.Builder setModulePath(String modulePath)
null the system property module.path will
be used if present. If the property is not present the modules directory will be determined from the servers
home directory.
Note that this value is only used if the module loader is
null. Also note that once the module loader is created changing this property, even for new
configurations, will have no effect in the same JVM.
modulePath - the module pathpublic Configuration.Builder addSystemPackage(String systemPackage)
Note that this value is only used if the module loader is
null. Also note that once the module loader is created changing this property, even for new
configurations, will have no effect in the same JVM.
systemPackage - the system package to add, null values are ignoredpublic Configuration.Builder addSystemPackages(String... systemPackages)
Note that this value is only used if the module loader is
null. Also note that once the module loader is created changing this property, even for new
configurations, will have no effect in the same JVM.
systemPackages - the system packages to add, null values are ignoredpublic Configuration.Builder setSystemPackages(String... systemPackages)
Note that this value is only used if the module loader is
null. Also note that once the module loader is created changing this property, even for new
configurations, will have no effect in the same JVM.
systemPackages - the system package to add, null clears the previously set system packagespublic Configuration build()
Copyright © 2018 JBoss by Red Hat. All rights reserved.