Class InfoObserverConfig.BuilderBase<BUILDER extends InfoObserverConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends InfoObserverConfig>
java.lang.Object
io.helidon.webserver.observe.ObserverConfigBase.BuilderBase<BUILDER, PROTOTYPE>
io.helidon.webserver.observe.info.InfoObserverConfig.BuilderBase<BUILDER, PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER, PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
- Direct Known Subclasses:
InfoObserverConfig.Builder
- Enclosing interface:
InfoObserverConfig
public abstract static class InfoObserverConfig.BuilderBase<BUILDER extends InfoObserverConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends InfoObserverConfig>
extends ObserverConfigBase.BuilderBase<BUILDER, PROTOTYPE>
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for
InfoObserverConfig.-
Nested Class Summary
Nested ClassesModifier 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. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionValues to be exposed using this observability endpoint.Update builder from configuration (node of this type).endpoint()Endpoint option.Endpoint option.from(InfoObserverConfig prototype) Update this builder from an existing prototype instance.from(InfoObserverConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.Values to be exposed using this observability endpoint.toString()protected voidValidates required properties.values()Values to be exposed using this observability endpoint.Values to be exposed using this observability endpoint.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 Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends InfoObserverConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends InfoObserverConfig>- Overrides:
configin classObserverConfigBase.BuilderBase<BUILDER extends InfoObserverConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends InfoObserverConfig>- Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
endpoint
-
values
-
addValues
-
putValue
Values to be exposed using this observability endpoint. This method adds a new value to the map, or replaces it if the key already exists.- Parameters:
key- key to add or replacevalue- new value for the key- Returns:
- updated builder instance
- See Also:
-
endpoint
-
values
-
toString
- Overrides:
toStringin classObserverConfigBase.BuilderBase<BUILDER extends InfoObserverConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends InfoObserverConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classObserverConfigBase.BuilderBase<BUILDER extends InfoObserverConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends InfoObserverConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classObserverConfigBase.BuilderBase<BUILDER extends InfoObserverConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends InfoObserverConfig>
-