|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wildfly.extras.creaper.commands.modules.AddModule.Builder
public static final class AddModule.Builder
| Constructor Summary | |
|---|---|
AddModule.Builder(String moduleName)
|
|
AddModule.Builder(String moduleName,
String slot)
|
|
| Method Summary | |
|---|---|
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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AddModule.Builder(String moduleName)
moduleName - the name of the module to be added (assumes the main slot)
public AddModule.Builder(String moduleName,
String slot)
moduleName - the name of the module to be addedslot - specifies a slot which should be created| Method Detail |
|---|
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 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||