public class Module extends Object
If a module is added to an archive, this descriptor is returned in order to allow specific customization regarding exports, services, etc.
JBossDeploymentStructureContainer.addModule(String)
,
JBossDeploymentStructureContainer.addModule(String, String)
Modifier and Type | Class and Description |
---|---|
static class |
Module.ServiceHandling |
Modifier and Type | Method and Description |
---|---|
Boolean |
export()
Determine if this module should be exported.
|
List<String> |
exportExcludePaths()
Retrieve the list of paths excluded from exportation from this module.
|
List<String> |
exportIncludePaths()
Retrieve this list of paths exported from this module.
|
List<String> |
importExcludePaths()
Retreive the list of paths excluded from importation from this module.
|
List<String> |
importIncludePaths()
Retrieve the list of paths imported from this module.
|
String |
metaInf()
Retrieve the meta-inf disposition.
|
String |
name()
The name of the module.
|
Boolean |
optional()
Determine if this module is considered optional.
|
Module.ServiceHandling |
services()
Retrieve the services flag.
|
String |
slot()
The slot of the module.
|
Module |
withExport(Boolean export)
Set the flag to determine if this module should be exported.
|
Module |
withExportExcludePath(String path)
Add a path to exclude from exporting from this module.
|
Module |
withExportIncludePath(String path)
Add a path to export from this module.
|
Module |
withImportExcludePath(String path)
Add a path to exclude from importing from this module.
|
Module |
withImportIncludePath(String path)
Add a path to import from this module.
|
Module |
withMetaInf(String metaInf)
Set the meta-inf disposition.
|
Module |
withOptional(Boolean optional)
Set the optional flag.
|
Module |
withServices(Module.ServiceHandling services)
Set the services flag.
|
public String name()
public String slot()
public Boolean export()
null
if undefined, otherwise true
if the module is to be exported, otherwise false
.public Module withExport(Boolean export)
export
- The flag.public Module.ServiceHandling services()
public Module withServices(Module.ServiceHandling services)
services
- The services flag.public Boolean optional()
null
if undefined, otherwise true
if the module is optional, otherwise false
.public Module withOptional(Boolean optional)
optional
- The optional flag.public String metaInf()
public Module withMetaInf(String metaInf)
metaInf
- The meta-inf disposition.public List<String> importIncludePaths()
public List<String> importExcludePaths()
public Module withImportIncludePath(String path)
path
- The path to add.public Module withImportExcludePath(String path)
path
- The excluded path to add.public List<String> exportIncludePaths()
public List<String> exportExcludePaths()
public Module withExportIncludePath(String path)
path
- The path to add.Copyright © 2018 JBoss by Red Hat. All rights reserved.