org.wildfly.extras.creaper.commands.modules
Class AddModule.Builder

java.lang.Object
  extended by org.wildfly.extras.creaper.commands.modules.AddModule.Builder
Enclosing class:
AddModule

public static final class AddModule.Builder
extends Object


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

AddModule.Builder

public AddModule.Builder(String moduleName)
Parameters:
moduleName - the name of the module to be added (assumes the main slot)

AddModule.Builder

public AddModule.Builder(String moduleName,
                         String slot)
Parameters:
moduleName - the name of the module to be added
slot - specifies a slot which should be created
Method Detail

resource

public AddModule.Builder resource(File file)
Adds resource (jar) to module, specified file will be copied to new module.


resourceDelimiter

public AddModule.Builder resourceDelimiter(String delimiter)
Sets resource delimiter. If not set, 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.


dependency

public AddModule.Builder dependency(String dependency)
Name of a module that the new module depends on. NOTE: this argument only makes sense when the module.xml file is generated, i.e. when the moduleXml(File) isn't specified.


moduleXml

public AddModule.Builder moduleXml(File moduleXml)
The 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.


property

public AddModule.Builder property(String name,
                                  String value)
Adds a property. NOTE: this argument only makes sense when the module.xml file is generated, i.e. when the moduleXml(File) isn't specified.


mainClass

public AddModule.Builder mainClass(String mainClass)
A fully qualified class name that declares the module's main method. NOTE: this argument only makes sense when the module.xml file is generated, i.e. when the moduleXml(File) isn't specified.


build

public AddModule build()


Copyright © 2020. All rights reserved.