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> Prototype.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 Prototype.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
InfoObserver
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class io.helidon.webserver.observe.ObserverConfigBase.BuilderBase
ObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis method keeps existing values, then puts all new values into the map.config()
If this instance was configured, this would be the config instance used.Update builder from configuration (node of this type).endpoint()
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 void
Handles providers and decorators.This method adds a new value to the map, or replaces it if the key already exists.toString()
protected void
Validates required properties.values()
Values to be exposed using this observability endpoint.This method replaces all values with the new ones.Methods inherited from class io.helidon.webserver.observe.ObserverConfigBase.BuilderBase
enabled, enabled, from, from, name, name
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
Methods inherited from interface io.helidon.builder.api.Prototype.ConfiguredBuilder
discoverService, discoverServices
-
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:
config
in interfacePrototype.ConfiguredBuilder<BUILDER extends InfoObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends InfoObserverConfig> - Overrides:
config
in 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
- Parameters:
endpoint
-- Returns:
- updated builder instance
- See Also:
-
values
This method replaces all values with the new ones.- Parameters:
values
- value map- Returns:
- updated builder instance
- See Also:
-
addValues
This method keeps existing values, then puts all new values into the map.- Parameters:
values
- value map- Returns:
- updated builder instance
- See Also:
-
putValue
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
- Returns:
- the endpoint
-
values
Values to be exposed using this observability endpoint.- Returns:
- the values
-
config
If this instance was configured, this would be the config instance used.- Overrides:
config
in classObserverConfigBase.BuilderBase<BUILDER extends InfoObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends InfoObserverConfig> - Returns:
- config node used to configure this builder, or empty if not configured
-
toString
- Overrides:
toString
in classObserverConfigBase.BuilderBase<BUILDER extends InfoObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends InfoObserverConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototype
in classObserverConfigBase.BuilderBase<BUILDER extends InfoObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends InfoObserverConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototype
in classObserverConfigBase.BuilderBase<BUILDER extends InfoObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends InfoObserverConfig>
-