@NotThreadSafe public static final class ImmutableJasmineConfiguration.Builder extends Object
ImmutableJasmineConfiguration.
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.
public final ImmutableJasmineConfiguration.Builder from(JasmineConfiguration instance)
JasmineConfiguration instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder basedir(File basedir)
basedir attribute.basedir - The value for basedirthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder jasmineTargetDir(File jasmineTargetDir)
jasmineTargetDir attribute.jasmineTargetDir - The value for jasmineTargetDirthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder srcDirectoryName(String srcDirectoryName)
srcDirectoryName attribute.
If not set, this attribute will have a default value as returned by the initializer of srcDirectoryName.
srcDirectoryName - The value for srcDirectoryNamethis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder specDirectoryName(String specDirectoryName)
specDirectoryName attribute.
If not set, this attribute will have a default value as returned by the initializer of specDirectoryName.
specDirectoryName - The value for specDirectoryNamethis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder sources(ScriptSearch sources)
sources attribute.sources - The value for sourcesthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder specs(ScriptSearch specs)
specs attribute.specs - The value for specsthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder addContexts(Context element)
contexts list.element - A contexts elementthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder addContexts(Context... elements)
contexts list.elements - An array of contexts elementsthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder contexts(Iterable<? extends Context> elements)
contexts list.elements - An iterable of contexts elementsthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder addAllContexts(Iterable<? extends Context> elements)
contexts list.elements - An iterable of contexts elementsthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder addPreloadSources(String element)
preloadSources list.element - A preloadSources elementthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder addPreloadSources(String... elements)
preloadSources list.elements - An array of preloadSources elementsthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder preloadSources(Iterable<String> elements)
preloadSources list.elements - An iterable of preloadSources elementsthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder addAllPreloadSources(Iterable<String> elements)
preloadSources list.elements - An iterable of preloadSources elementsthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder sourceEncoding(String sourceEncoding)
sourceEncoding attribute.
If not set, this attribute will have a default value as returned by the initializer of sourceEncoding.
sourceEncoding - The value for sourceEncodingthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder specRunnerTemplate(SpecRunnerTemplate specRunnerTemplate)
specRunnerTemplate attribute.
If not set, this attribute will have a default value as returned by the initializer of specRunnerTemplate.
specRunnerTemplate - The value for specRunnerTemplatethis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder customRunnerTemplate(File customRunnerTemplate)
customRunnerTemplate to customRunnerTemplate.customRunnerTemplate - The value for customRunnerTemplatethis builder for chained invocationpublic final ImmutableJasmineConfiguration.Builder customRunnerTemplate(Optional<? extends File> customRunnerTemplate)
customRunnerTemplate to customRunnerTemplate.customRunnerTemplate - The value for customRunnerTemplatethis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder customRunnerConfiguration(File customRunnerConfiguration)
customRunnerConfiguration to customRunnerConfiguration.customRunnerConfiguration - The value for customRunnerConfigurationthis builder for chained invocationpublic final ImmutableJasmineConfiguration.Builder customRunnerConfiguration(Optional<? extends File> customRunnerConfiguration)
customRunnerConfiguration to customRunnerConfiguration.customRunnerConfiguration - The value for customRunnerConfigurationthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder specRunnerHtmlFileName(String specRunnerHtmlFileName)
specRunnerHtmlFileName attribute.
If not set, this attribute will have a default value as returned by the initializer of specRunnerHtmlFileName.
specRunnerHtmlFileName - The value for specRunnerHtmlFileNamethis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder reporterType(ReporterType reporterType)
reporterType attribute.
If not set, this attribute will have a default value as returned by the initializer of reporterType.
reporterType - The value for reporterTypethis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder addReporters(Reporter element)
reporters list.element - A reporters elementthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder addReporters(Reporter... elements)
reporters list.elements - An array of reporters elementsthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder reporters(Iterable<? extends Reporter> elements)
reporters list.elements - An iterable of reporters elementsthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder addAllReporters(Iterable<? extends Reporter> elements)
reporters list.elements - An iterable of reporters elementsthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder addFileSystemReporters(FileSystemReporter element)
fileSystemReporters list.element - A fileSystemReporters elementthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder addFileSystemReporters(FileSystemReporter... elements)
fileSystemReporters list.elements - An array of fileSystemReporters elementsthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder fileSystemReporters(Iterable<? extends FileSystemReporter> elements)
fileSystemReporters list.elements - An iterable of fileSystemReporters elementsthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder addAllFileSystemReporters(Iterable<? extends FileSystemReporter> elements)
fileSystemReporters list.elements - An iterable of fileSystemReporters elementsthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder autoRefreshInterval(int autoRefreshInterval)
autoRefreshInterval attribute.
If not set, this attribute will have a default value as returned by the initializer of autoRefreshInterval.
autoRefreshInterval - The value for autoRefreshIntervalthis builder for use in a chained invocationpublic final ImmutableJasmineConfiguration.Builder projectClassLoader(ClassLoader projectClassLoader)
projectClassLoader attribute.
If not set, this attribute will have a default value as returned by the initializer of projectClassLoader.
projectClassLoader - The value for projectClassLoaderthis builder for use in a chained invocationpublic ImmutableJasmineConfiguration build()
ImmutableJasmineConfiguration.IllegalStateException - if any required attributes are missingCopyright © 2010–2018 Justin Searls. All rights reserved.