Class OptionProvider.Builder
java.lang.Object
io.helidon.builder.codegen.OptionProvider.BuilderBase<OptionProvider.Builder, OptionProvider>
io.helidon.builder.codegen.OptionProvider.Builder
- All Implemented Interfaces:
Prototype.Builder<OptionProvider.Builder, OptionProvider>, Builder<OptionProvider.Builder, OptionProvider>, Supplier<OptionProvider>
- Enclosing interface:
OptionProvider
public static class OptionProvider.Builder
extends OptionProvider.BuilderBase<OptionProvider.Builder, OptionProvider>
implements Builder<OptionProvider.Builder, OptionProvider>
Fluent API builder for
OptionProvider.-
Nested Class Summary
Nested classes/interfaces inherited from class OptionProvider.BuilderBase
OptionProvider.BuilderBase.OptionProviderImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Methods inherited from class OptionProvider.BuilderBase
configForm, configForm, discoverServices, discoverServices, from, from, preBuildPrototype, providerIdentity, providerIdentity, providerType, providerType, providerType, providerType, toString, validatePrototypeModifier and TypeMethodDescriptionConfigured provider outer configuration form.configForm(Option.Provider.ConfigForm configForm) Configured provider outer configuration form.booleanWhether to discover services by default.discoverServices(boolean discoverServices) Whether to discover services by default.from(OptionProvider prototype) Update this builder from an existing prototype instance.from(OptionProvider.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.Configured provider identity.providerIdentity(Option.Provider.Identity providerIdentity) Configured provider identity.Type of the provider to lookup.providerType(TypeName providerType) Type of the provider to lookup.providerType(Consumer<TypeName.Builder> consumer) Type of the provider to lookup.providerType(Supplier<? extends TypeName> supplier) Type of the provider to lookup.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 OptionProviderget()default OptionProvider.Builderidentity()Instance of this builder as the correct type.default OptionProvider.Builderupdate(Consumer<OptionProvider.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault OptionProvider.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Description copied from interface:Prototype.BuilderCreate an instance of thePrototype. This method is available on all generated builders forPrototype.Blueprint.Calling this method may update the builder from providers and decorators, so repeated calls may have side effects such as repeated provider discovery.
- Specified by:
buildPrototypein interfacePrototype.Builder<OptionProvider.Builder, OptionProvider>- Returns:
- an instance of the setup object created from this builder
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<OptionProvider.Builder, OptionProvider>- Returns:
- instance of the built type
-