Class LogObserverConfig.Builder
java.lang.Object
io.helidon.webserver.observe.ObserverConfigBase.BuilderBase<LogObserverConfig.Builder, LogObserverConfig>
io.helidon.webserver.observe.log.LogObserverConfig.BuilderBase<LogObserverConfig.Builder, LogObserverConfig>
io.helidon.webserver.observe.log.LogObserverConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<LogObserverConfig.Builder, LogObserverConfig>, Builder<LogObserverConfig.Builder, LogObserver>, ConfigBuilderSupport.ConfiguredBuilder<LogObserverConfig.Builder, LogObserverConfig>, Supplier<LogObserver>
- Enclosing interface:
LogObserverConfig
public static class LogObserverConfig.Builder
extends LogObserverConfig.BuilderBase<LogObserverConfig.Builder, LogObserverConfig>
implements Builder<LogObserverConfig.Builder, LogObserver>
Fluent API builder for
LogObserver.-
Nested Class Summary
Nested classes/interfaces inherited from class LogObserverConfig.BuilderBase
LogObserverConfig.BuilderBase.LogObserverConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.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 LogObserverConfig.BuilderBase
config, endpoint, endpoint, from, from, permitAll, permitAll, preBuildPrototype, stream, stream, stream, stream, toString, validatePrototypeModifier and TypeMethodDescriptionUpdate builder from configuration (node of this type).endpoint()Endpoint option.Endpoint option.from(LogObserverConfig prototype) Update this builder from an existing prototype instance.from(LogObserverConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.booleanPermit all access, even when not authorized.permitAll(boolean permitAll) Permit all access, even when not authorized.protected voidHandles providers and decorators.stream()Configuration of log stream.stream(LogStreamConfig stream) Configuration of log stream.stream(Consumer<LogStreamConfig.Builder> consumer) Configuration of log stream.stream(Supplier<? extends LogStreamConfig> supplier) Configuration of log stream.toString()protected voidValidates required properties.Methods inherited from class ObserverConfigBase.BuilderBase
config, enabled, enabled, from, from, name, nameModifier and TypeMethodDescriptionconfig()The config instance used to configure this observer.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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault LogObserverget()default LogObserverConfig.Builderidentity()Instance of this builder as the correct type.default LogObserverConfig.Builderupdate(Consumer<LogObserverConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault LogObserverConfig.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<LogObserverConfig.Builder, LogObserverConfig>- 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<LogObserverConfig.Builder, LogObserver>- Returns:
- instance of the built type
-