public static final class ModuleDescriptor.Builder
extends java.lang.Object
ModuleDescriptor.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ModuleDescriptor |
build()
Builds instances of
ModuleDescriptor. |
ApplyToDependencies |
getApplyToDependencies()
Returns the information that has to be applied to dependencies if the
matcher matches the name of a module.
|
ApplyToModule |
getApplyToModule()
Returns the module information to be applied to the generated module.
|
Directives |
getDirectives()
Returns the directives for this module.
|
ArtifactMatcher |
getMatcher()
Returns the artifact matcher to define the rules for matching artifacts
to be included as resources to a module.
|
java.lang.String |
getName()
Returns the name of the module.
|
java.lang.String |
getSlot()
Returns the name of the slot this module is part of.
|
ModuleDescriptor.Builder |
with(ApplyToDependencies applyToDependencies)
Sets the information that has to be applied to dependencies if the
matcher matches the name of a module.
|
ModuleDescriptor.Builder |
with(ApplyToModule applyToModule)
Sets the module information to be applied to the generated module.
|
ModuleDescriptor.Builder |
with(ArtifactMatcher matcher)
Sets the artifact matcher to define the rules for matching artifacts to
be included as resources to a module.
|
ModuleDescriptor.Builder |
with(Directives directives)
Sets the directives for this module.
|
ModuleDescriptor.Builder |
withName(java.lang.String name)
Sets the name of the module.
|
ModuleDescriptor.Builder |
withSlot(java.lang.String slot)
Sets the name of the slot this module is part of.
|
public ModuleDescriptor.Builder withName(java.lang.String name)
name - the name of the module.public ModuleDescriptor.Builder withSlot(java.lang.String slot)
null.slot - the name of the slot this module is part of.public ModuleDescriptor.Builder with(Directives directives)
directives - the directives for this module.public ModuleDescriptor.Builder with(ArtifactMatcher matcher)
matcher - the dependency matcher for resources.public ModuleDescriptor.Builder with(ApplyToDependencies applyToDependencies)
applyToDependencies - the information that has to be applied to
dependencies if the matcher matches the name of a module.public ModuleDescriptor.Builder with(ApplyToModule applyToModule)
applyToModule - the module information to be applied to the
generated module.public java.lang.String getName()
public java.lang.String getSlot()
null.public Directives getDirectives()
public ArtifactMatcher getMatcher()
public ApplyToDependencies getApplyToDependencies()
public ApplyToModule getApplyToModule()
public ModuleDescriptor build() throws java.lang.NullPointerException, java.lang.IllegalArgumentException
ModuleDescriptor.java.lang.NullPointerException - if any required builder property is
null.java.lang.IllegalArgumentException - if any builder property is not validated
successfully.