public static final class DependenciesDescriptor.Builder
extends java.lang.Object
DependenciesDescriptor.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DependenciesDescriptor |
build()
Builds an instance of
DependenciesDescriptor. |
void |
merge(java.lang.String moduleName,
DependenciesDescriptor descriptor)
Merges the content of the given descriptor into the builder instance.
|
DependenciesDescriptor.Builder |
with(ModuleMatcher matcher)
Sets the matcher to match modules by their name.
|
DependenciesDescriptor.Builder |
withExport(java.lang.String export)
Sets the export attribute for the dependency.
|
DependenciesDescriptor.Builder |
withExportsXml(java.lang.String exportsXml)
Sets the XML fragment specifying exports for the dependency.
|
DependenciesDescriptor.Builder |
withImportsXml(java.lang.String importsXml)
Sets the XML fragment specifying imports for the dependency.
|
DependenciesDescriptor.Builder |
withOptional(java.lang.String optional)
Sets the optional attribute for the dependency.
|
DependenciesDescriptor.Builder |
withServices(java.lang.String services)
Sets the services attribute for the dependency.
|
DependenciesDescriptor.Builder |
withSlot(java.lang.String slot)
Sets the slot of the dependency.
|
public DependenciesDescriptor.Builder with(ModuleMatcher matcher)
matcher - the matcher to match modules by their name.public DependenciesDescriptor.Builder withSlot(java.lang.String slot)
slot - the slot of the dependency.public DependenciesDescriptor.Builder withExport(java.lang.String export)
export - the export attribute for the dependency.public DependenciesDescriptor.Builder withServices(java.lang.String services)
services - the services attribute for the dependency.public DependenciesDescriptor.Builder withOptional(java.lang.String optional)
optional - the optional attribute for the dependency.public DependenciesDescriptor.Builder withImportsXml(java.lang.String importsXml)
importsXml - the XML fragment specifying imports for the dependency.public DependenciesDescriptor.Builder withExportsXml(java.lang.String exportsXml)
exportsXml - the XML fragment specifying exports for the dependency.public void merge(java.lang.String moduleName,
DependenciesDescriptor descriptor)
Not that the matcher information is not merged.
moduleName - the name of the module to merge the descriptor.descriptor - the descriptor information to merge into this instance.public DependenciesDescriptor build()
DependenciesDescriptor.