| Constructor and Description |
|---|
Builder(String moduleName) |
Builder(String moduleName,
String slot) |
| Modifier and Type | Method and Description |
|---|---|
AddModule |
build() |
AddModule.Builder |
dependency(String dependency)
Name of a module that the new module depends on.
|
AddModule.Builder |
mainClass(String mainClass)
A fully qualified class name that declares the module's
main method. |
AddModule.Builder |
moduleRootDir(File moduleRootDir)
Use this argument if you have defined an external JBoss EAP module directory to use instead of the default
EAP_HOME/modules/ directory.
|
AddModule.Builder |
moduleXml(File moduleXml)
The
module.xml file which should be used for the added module. |
AddModule.Builder |
property(String name,
String value)
Adds a property.
|
AddModule.Builder |
resource(File file)
Adds resource (jar) to module, specified file will be copied to new module.
|
AddModule.Builder |
resourceDelimiter(String delimiter)
Sets resource delimiter.
|
public Builder(String moduleName)
moduleName - the name of the module to be added (assumes the main slot)public AddModule.Builder resource(File file)
public AddModule.Builder resourceDelimiter(String delimiter)
File.separatorChar is used. Only Strings with length 1
are allowed. Whitespaces are not allowed. This option is ignored if server version is less then WildFly 8.public AddModule.Builder dependency(String dependency)
module.xml file is generated, i.e. when the moduleXml(File) isn't specified.public AddModule.Builder moduleRootDir(File moduleRootDir)
public AddModule.Builder moduleXml(File moduleXml)
module.xml file which should be used for the added module. The file will be copied
to the created module's directory. If this argument is not specified, module.xml file
will be generated automatically.public AddModule.Builder property(String name, String value)
module.xml file is generated,
i.e. when the moduleXml(File) isn't specified.public AddModule.Builder mainClass(String mainClass)
main method. NOTE: this argument
only makes sense when the module.xml file is generated, i.e. when the moduleXml(File)
isn't specified.public AddModule build()
Copyright © 2022. All rights reserved.