
public interface ModuleDescriptor extends Descriptor, DescriptorNamespace<ModuleDescriptor>
This deployment descriptor provides the functionalities as described in the specification
Example:
ModuleDescriptor descriptor = Descriptors.create(ModuleDescriptor.class);
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the
name attribute |
DependenciesType<ModuleDescriptor> |
getOrCreateDependencies()
If not already created, a new
dependencies element with the given value will be created. |
FilterType<ModuleDescriptor> |
getOrCreateExports()
If not already created, a new
exports element with the given value will be created. |
ClassNameType<ModuleDescriptor> |
getOrCreateMainClass()
If not already created, a new
main-class element with the given value will be created. |
PermissionsType<ModuleDescriptor> |
getOrCreatePermissions()
If not already created, a new
permissions element with the given value will be created. |
PropertyListType<ModuleDescriptor> |
getOrCreateProperties()
If not already created, a new
properties element with the given value will be created. |
ResourcesType<ModuleDescriptor> |
getOrCreateResources()
If not already created, a new
resources element with the given value will be created. |
String |
getSlot()
Returns the
slot attribute |
ModuleDescriptor |
name(String name)
Sets the
name attribute |
ModuleDescriptor |
removeDependencies()
Removes the
dependencies element |
ModuleDescriptor |
removeExports()
Removes the
exports element |
ModuleDescriptor |
removeMainClass()
Removes the
main-class element |
ModuleDescriptor |
removeName()
Removes the
name attribute |
ModuleDescriptor |
removePermissions()
Removes the
permissions element |
ModuleDescriptor |
removeProperties()
Removes the
properties element |
ModuleDescriptor |
removeResources()
Removes the
resources element |
ModuleDescriptor |
removeSlot()
Removes the
slot attribute |
ModuleDescriptor |
slot(String slot)
Sets the
slot attribute |
exportAsString, exportTo, getDescriptorNameaddDefaultNamespaces, addNamespace, getNamespaces, removeAllNamespacesFilterType<ModuleDescriptor> getOrCreateExports()
exports element with the given value will be created.
Otherwise, the existing exports element will be returned.FilterTypeModuleDescriptor removeExports()
exports elementModuleDescriptorDependenciesType<ModuleDescriptor> getOrCreateDependencies()
dependencies element with the given value will be created.
Otherwise, the existing dependencies element will be returned.DependenciesTypeModuleDescriptor removeDependencies()
dependencies elementModuleDescriptorResourcesType<ModuleDescriptor> getOrCreateResources()
resources element with the given value will be created.
Otherwise, the existing resources element will be returned.ResourcesTypeModuleDescriptor removeResources()
resources elementModuleDescriptorClassNameType<ModuleDescriptor> getOrCreateMainClass()
main-class element with the given value will be created.
Otherwise, the existing main-class element will be returned.ClassNameTypeModuleDescriptor removeMainClass()
main-class elementModuleDescriptorPropertyListType<ModuleDescriptor> getOrCreateProperties()
properties element with the given value will be created.
Otherwise, the existing properties element will be returned.PropertyListTypeModuleDescriptor removeProperties()
properties elementModuleDescriptorPermissionsType<ModuleDescriptor> getOrCreatePermissions()
permissions element with the given value will be created.
Otherwise, the existing permissions element will be returned.PermissionsTypeModuleDescriptor removePermissions()
permissions elementModuleDescriptorModuleDescriptor name(String name)
name attributename - the value for the attribute nameModuleDescriptorString getName()
name attributenameModuleDescriptor removeName()
name attributeModuleDescriptorModuleDescriptor slot(String slot)
slot attributeslot - the value for the attribute slotModuleDescriptorString getSlot()
slot attributeslotModuleDescriptor removeSlot()
slot attributeModuleDescriptorCopyright © 2025 JBoss by Red Hat. All rights reserved.