public static final class ExecutionContext.Builder
extends java.lang.Object
ExecutionContext.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ExecutionContext |
build()
Builds
ExecutionContext. |
ExecutionContext.Builder |
with(org.slf4j.Logger log)
Sets the Maven logger to log.
|
ExecutionContext.Builder |
with(ModuleMap moduleMap)
Sets the map of modules encountered so far.
|
ExecutionContext.Builder |
with(SlotStrategy slotStrategy)
Sets the slot strategy for modules.
|
ExecutionContext.Builder |
with(TransitiveDependencyResolver resolver)
Sets the resolver to determine dependencies of an artifact.
|
ExecutionContext.Builder |
withDefaultSlot(java.lang.String defaultSlot)
Sets the name of the default slot to write to.
|
ExecutionContext.Builder |
withGlobalModuleDependency(java.lang.String globalModuleDependency)
Sets the global module dependency.
|
ExecutionContext.Builder |
withTargetFolder(java.io.File targetFolder)
Sets the folder to write the module structure to.
|
public ExecutionContext.Builder with(org.slf4j.Logger log)
log - the Maven logger to log.public ExecutionContext.Builder withTargetFolder(java.io.File targetFolder)
targetFolder - the folder to write the module structure to.public ExecutionContext.Builder with(TransitiveDependencyResolver resolver)
resolver - the resolver to determine dependencies of an artifact.public ExecutionContext.Builder with(SlotStrategy slotStrategy)
slotStrategy - the slot strategy for modules.public ExecutionContext.Builder withDefaultSlot(java.lang.String defaultSlot)
defaultSlot - the name of the default slot to write to.public ExecutionContext.Builder with(ModuleMap moduleMap)
moduleMap - the map of modules encountered so far.public ExecutionContext.Builder withGlobalModuleDependency(java.lang.String globalModuleDependency)
globalModuleDependency - name of module to add as a dependency to all modules generatedpublic ExecutionContext build() throws java.lang.NullPointerException
ExecutionContext.java.lang.NullPointerException - if any configuration property is
null.