Class ObserverConfigBase.Builder
java.lang.Object
io.helidon.webserver.observe.ObserverConfigBase.BuilderBase<ObserverConfigBase.Builder, ObserverConfigBase>
io.helidon.webserver.observe.ObserverConfigBase.Builder
- All Implemented Interfaces:
Prototype.Builder<ObserverConfigBase.Builder, ObserverConfigBase>, Builder<ObserverConfigBase.Builder, ObserverConfigBase>, ConfigBuilderSupport.ConfiguredBuilder<ObserverConfigBase.Builder, ObserverConfigBase>, Supplier<ObserverConfigBase>
- Enclosing interface:
ObserverConfigBase
public static class ObserverConfigBase.Builder
extends ObserverConfigBase.BuilderBase<ObserverConfigBase.Builder, ObserverConfigBase>
implements Builder<ObserverConfigBase.Builder, ObserverConfigBase>
Fluent API builder for
ObserverConfigBase.-
Nested Class Summary
Nested classes/interfaces inherited from class ObserverConfigBase.BuilderBase
ObserverConfigBase.BuilderBase.ObserverConfigBaseImplModifier 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 ObserverConfigBase.BuilderBase
config, config, enabled, enabled, from, from, name, name, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionconfig()The config instance used to configure this observer.Update builder from configuration (node of this type).booleanenabled()Whether this observer is enabled.enabled(boolean enabled) Whether this observer is enabled.from(ObserverConfigBase prototype) Update this builder from an existing prototype instance.from(ObserverConfigBase.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.name()Name of this observer.Name of this observer.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 ObserverConfigBaseget()default ObserverConfigBase.Builderidentity()Instance of this builder as the correct type.default ObserverConfigBase.Builderupdate(Consumer<ObserverConfigBase.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault ObserverConfigBase.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<ObserverConfigBase.Builder, ObserverConfigBase>- 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<ObserverConfigBase.Builder, ObserverConfigBase>- Returns:
- instance of the built type
-