public static final class ImmutableProcessFactory.Builder extends Object
ImmutableProcessFactory.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableProcessFactory |
build()
Builds a new
ImmutableProcessFactory. |
ImmutableProcessFactory.Builder |
distribution(de.flapdoodle.reverse.Transition<Distribution> distribution)
Initializes the value for the
distribution attribute. |
ImmutableProcessFactory.Builder |
downloadCache(de.flapdoodle.reverse.Transition<DownloadCache> downloadCache)
Initializes the value for the
downloadCache attribute. |
ImmutableProcessFactory.Builder |
downloadPackage(de.flapdoodle.reverse.Transition<Archive> downloadPackage)
Initializes the value for the
downloadPackage attribute. |
ImmutableProcessFactory.Builder |
executer(de.flapdoodle.reverse.Transition<ExecutedProcess> executer)
Initializes the value for the
executer attribute. |
ImmutableProcessFactory.Builder |
extractedFileSetStore(de.flapdoodle.reverse.Transition<ExtractedFileSetStore> extractedFileSetStore)
Initializes the value for the
extractedFileSetStore attribute. |
ImmutableProcessFactory.Builder |
extractPackage(de.flapdoodle.reverse.Transition<ExtractedFileSet> extractPackage)
Initializes the value for the
extractPackage attribute. |
ImmutableProcessFactory.Builder |
from(ProcessFactory instance)
Fill a builder with attribute values from the provided
ProcessFactory instance. |
ImmutableProcessFactory.Builder |
initTempDirectory(de.flapdoodle.reverse.Transition<TempDir> initTempDirectory)
Initializes the value for the
initTempDirectory attribute. |
ImmutableProcessFactory.Builder |
name(de.flapdoodle.reverse.Transition<Name> name)
Initializes the value for the
name attribute. |
ImmutableProcessFactory.Builder |
packageInformation(Function<Distribution,Package> packageInformation)
Initializes the value for the
packageInformation attribute. |
ImmutableProcessFactory.Builder |
persistentBaseDir(de.flapdoodle.reverse.Transition<PersistentDir> persistentBaseDir)
Initializes the value for the
persistentBaseDir attribute. |
ImmutableProcessFactory.Builder |
processArguments(de.flapdoodle.reverse.Transition<ProcessArguments> processArguments)
Initializes the value for the
processArguments attribute. |
ImmutableProcessFactory.Builder |
processConfig(de.flapdoodle.reverse.transitions.Start<ProcessConfig> processConfig)
Initializes the value for the
processConfig attribute. |
ImmutableProcessFactory.Builder |
processEnv(de.flapdoodle.reverse.Transition<ProcessEnv> processEnv)
Initializes the value for the
processEnv attribute. |
ImmutableProcessFactory.Builder |
processOutput(de.flapdoodle.reverse.Transition<ProcessOutput> processOutput)
Initializes the value for the
processOutput attribute. |
ImmutableProcessFactory.Builder |
processWorkingDir(de.flapdoodle.reverse.Transition<ProcessWorkingDir> processWorkingDir)
Initializes the value for the
processWorkingDir attribute. |
ImmutableProcessFactory.Builder |
progressListener(de.flapdoodle.reverse.Transition<ProgressListener> progressListener)
Initializes the value for the
progressListener attribute. |
ImmutableProcessFactory.Builder |
supportConfig(de.flapdoodle.reverse.Transition<SupportConfig> supportConfig)
Initializes the value for the
supportConfig attribute. |
ImmutableProcessFactory.Builder |
version(Version version)
Initializes the value for the
version attribute. |
public final ImmutableProcessFactory.Builder from(ProcessFactory instance)
ProcessFactory instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder version(Version version)
version attribute.version - The value for versionthis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder name(de.flapdoodle.reverse.Transition<Name> name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder initTempDirectory(de.flapdoodle.reverse.Transition<TempDir> initTempDirectory)
initTempDirectory attribute.
If not set, this attribute will have a default value as returned by the initializer of initTempDirectory.
initTempDirectory - The value for initTempDirectorythis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder processWorkingDir(de.flapdoodle.reverse.Transition<ProcessWorkingDir> processWorkingDir)
processWorkingDir attribute.
If not set, this attribute will have a default value as returned by the initializer of processWorkingDir.
processWorkingDir - The value for processWorkingDirthis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder processConfig(de.flapdoodle.reverse.transitions.Start<ProcessConfig> processConfig)
processConfig attribute.
If not set, this attribute will have a default value as returned by the initializer of processConfig.
processConfig - The value for processConfigthis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder processEnv(de.flapdoodle.reverse.Transition<ProcessEnv> processEnv)
processEnv attribute.
If not set, this attribute will have a default value as returned by the initializer of processEnv.
processEnv - The value for processEnvthis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder processArguments(de.flapdoodle.reverse.Transition<ProcessArguments> processArguments)
processArguments attribute.processArguments - The value for processArgumentsthis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder processOutput(de.flapdoodle.reverse.Transition<ProcessOutput> processOutput)
processOutput attribute.
If not set, this attribute will have a default value as returned by the initializer of processOutput.
processOutput - The value for processOutputthis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder progressListener(de.flapdoodle.reverse.Transition<ProgressListener> progressListener)
progressListener attribute.
If not set, this attribute will have a default value as returned by the initializer of progressListener.
progressListener - The value for progressListenerthis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder supportConfig(de.flapdoodle.reverse.Transition<SupportConfig> supportConfig)
supportConfig attribute.
If not set, this attribute will have a default value as returned by the initializer of supportConfig.
supportConfig - The value for supportConfigthis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder persistentBaseDir(de.flapdoodle.reverse.Transition<PersistentDir> persistentBaseDir)
persistentBaseDir attribute.persistentBaseDir - The value for persistentBaseDirthis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder downloadCache(de.flapdoodle.reverse.Transition<DownloadCache> downloadCache)
downloadCache attribute.
If not set, this attribute will have a default value as returned by the initializer of downloadCache.
downloadCache - The value for downloadCachethis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder extractedFileSetStore(de.flapdoodle.reverse.Transition<ExtractedFileSetStore> extractedFileSetStore)
extractedFileSetStore attribute.
If not set, this attribute will have a default value as returned by the initializer of extractedFileSetStore.
extractedFileSetStore - The value for extractedFileSetStorethis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder extractPackage(de.flapdoodle.reverse.Transition<ExtractedFileSet> extractPackage)
extractPackage attribute.
If not set, this attribute will have a default value as returned by the initializer of extractPackage.
extractPackage - The value for extractPackagethis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder downloadPackage(de.flapdoodle.reverse.Transition<Archive> downloadPackage)
downloadPackage attribute.
If not set, this attribute will have a default value as returned by the initializer of downloadPackage.
downloadPackage - The value for downloadPackagethis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder distribution(de.flapdoodle.reverse.Transition<Distribution> distribution)
distribution attribute.
If not set, this attribute will have a default value as returned by the initializer of distribution.
distribution - The value for distributionthis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder packageInformation(Function<Distribution,Package> packageInformation)
packageInformation attribute.packageInformation - The value for packageInformationthis builder for use in a chained invocationpublic final ImmutableProcessFactory.Builder executer(de.flapdoodle.reverse.Transition<ExecutedProcess> executer)
executer attribute.
If not set, this attribute will have a default value as returned by the initializer of executer.
executer - The value for executerthis builder for use in a chained invocationpublic ImmutableProcessFactory build()
ImmutableProcessFactory.IllegalStateException - if any required attributes are missingCopyright © 2023. All rights reserved.