@NotThreadSafe public static final class ImmutablePluginCache.Builder extends Object
ImmutablePluginCache.
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 ImmutablePluginCache.Builder addAllPluginDescriptors(Iterable<? extends PluginDescriptor> elements)
pluginDescriptors list.elements - An iterable of pluginDescriptors elementsthis builder for use in a chained invocationpublic final ImmutablePluginCache.Builder addAllPluginJars(Iterable<? extends File> elements)
pluginJars list.elements - An iterable of pluginJars elementsthis builder for use in a chained invocationpublic final ImmutablePluginCache.Builder addPluginDescriptors(PluginDescriptor... elements)
pluginDescriptors list.elements - An array of pluginDescriptors elementsthis builder for use in a chained invocationpublic final ImmutablePluginCache.Builder addPluginDescriptors(PluginDescriptor element)
pluginDescriptors list.element - A pluginDescriptors elementthis builder for use in a chained invocationpublic final ImmutablePluginCache.Builder addPluginJars(File... elements)
pluginJars list.elements - An array of pluginJars elementsthis builder for use in a chained invocationpublic final ImmutablePluginCache.Builder addPluginJars(File element)
pluginJars list.element - A pluginJars elementthis builder for use in a chained invocationpublic ImmutablePluginCache build()
ImmutablePluginCache.IllegalStateException - if any required attributes are missingpublic final ImmutablePluginCache.Builder copyFrom(PluginCache instance)
PluginCache 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 ImmutablePluginCache.Builder pluginDescriptors(Iterable<? extends PluginDescriptor> elements)
pluginDescriptors list.elements - An iterable of pluginDescriptors elementsthis builder for use in a chained invocationpublic final ImmutablePluginCache.Builder pluginJars(Iterable<? extends File> elements)
pluginJars list.elements - An iterable of pluginJars elementsthis builder for use in a chained invocationCopyright © 2011–2020 Glowroot contributors. All rights reserved.