Class ConfigItem.Builder
java.lang.Object
io.helidon.config.ConfigItem.BuilderBase<ConfigItem.Builder, ConfigItem>
io.helidon.config.ConfigItem.Builder
- All Implemented Interfaces:
Prototype.Builder<ConfigItem.Builder, ConfigItem>, Builder<ConfigItem.Builder, ConfigItem>, Supplier<ConfigItem>
- Enclosing interface:
ConfigItem
public static class ConfigItem.Builder
extends ConfigItem.BuilderBase<ConfigItem.Builder, ConfigItem>
implements Builder<ConfigItem.Builder, ConfigItem>
Fluent API builder for
ConfigItem.-
Nested Class Summary
Nested classes/interfaces inherited from class ConfigItem.BuilderBase
ConfigItem.BuilderBase.ConfigItemImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class ConfigItem.BuilderBase
cacheItem, cacheItem, from, from, item, item, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionbooleanWhether to cache this handled config item or not.cacheItem(boolean cacheItem) Whether to cache this handled config item or not.from(ConfigItem prototype) Update this builder from an existing prototype instance.from(ConfigItem.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.item()Handled config item.Handled config item.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault ConfigItemget()default ConfigItem.Builderidentity()Instance of this builder as the correct type.default ConfigItem.Builderupdate(Consumer<ConfigItem.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault ConfigItem.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<ConfigItem.Builder, ConfigItem>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<ConfigItem.Builder, ConfigItem>- Returns:
- instance of the built type
-