Class ContextFeatureConfig.Builder
java.lang.Object
io.helidon.webserver.context.ContextFeatureConfig.BuilderBase<ContextFeatureConfig.Builder, ContextFeatureConfig>
io.helidon.webserver.context.ContextFeatureConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<ContextFeatureConfig.Builder, ContextFeatureConfig>, Builder<ContextFeatureConfig.Builder, ContextFeature>, ConfigBuilderSupport.ConfiguredBuilder<ContextFeatureConfig.Builder, ContextFeatureConfig>, Supplier<ContextFeature>
- Enclosing interface:
ContextFeatureConfig
public static class ContextFeatureConfig.Builder
extends ContextFeatureConfig.BuilderBase<ContextFeatureConfig.Builder, ContextFeatureConfig>
implements Builder<ContextFeatureConfig.Builder, ContextFeature>
Fluent API builder for
ContextFeature.-
Nested Class Summary
Nested classes/interfaces inherited from class ContextFeatureConfig.BuilderBase
ContextFeatureConfig.BuilderBase.ContextFeatureConfigImplModifier 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 ContextFeatureConfig.BuilderBase
addRecord, addRecord, addRecords, addSockets, clearRecords, clearSockets, config, config, from, from, name, name, preBuildPrototype, records, records, sockets, sockets, toString, validatePrototype, weight, weightModifier and TypeMethodDescriptionaddRecord(ContextRecordConfig record) List of propagation records.addRecord(Consumer<ContextRecordConfig.Builder> consumer) List of propagation records.addRecords(List<? extends ContextRecordConfig> records) List of propagation records.addSockets(Set<String> sockets) List of sockets to register this feature on.Clear all records.Clear all sockets.config()Configuration used to configure this instance.Update builder from configuration (node of this type).from(ContextFeatureConfig prototype) Update this builder from an existing prototype instance.from(ContextFeatureConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.name()Name of this instance.Name of this instance.protected voidHandles providers and decorators.records()List of propagation records.records(List<? extends ContextRecordConfig> records) List of propagation records.sockets()List of sockets to register this feature on.List of sockets to register this feature on.toString()protected voidValidates required properties.doubleweight()Weight of the context feature.weight(double weight) Weight of the context feature.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault ContextFeatureget()default ContextFeatureConfig.Builderidentity()Instance of this builder as the correct type.default ContextFeatureConfig.Builderupdate(Consumer<ContextFeatureConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault ContextFeatureConfig.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<ContextFeatureConfig.Builder, ContextFeatureConfig>- 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<ContextFeatureConfig.Builder, ContextFeature>- Returns:
- instance of the built type
-