Module io.helidon.webserver.context
Package io.helidon.webserver.context
Class ContextFeatureConfig.BuilderBase.ContextFeatureConfigImpl
java.lang.Object
io.helidon.webserver.context.ContextFeatureConfig.BuilderBase.ContextFeatureConfigImpl
- All Implemented Interfaces:
Prototype.Api,Prototype.Factory<ContextFeature>,ContextFeatureConfig,Supplier<ContextFeature>
- Enclosing class:
ContextFeatureConfig.BuilderBase<BUILDER extends ContextFeatureConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ContextFeatureConfig>
protected static class ContextFeatureConfig.BuilderBase.ContextFeatureConfigImpl
extends Object
implements ContextFeatureConfig, Supplier<ContextFeature>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.context.ContextFeatureConfig
ContextFeatureConfig.Builder, ContextFeatureConfig.BuilderBase<BUILDER extends ContextFeatureConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ContextFeatureConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContextFeatureConfigImpl(ContextFeatureConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.booleanget()inthashCode()name()Name of this instance.records()List of propagation records.sockets()List of sockets to register this feature on.toString()doubleweight()Weight of the context feature.
-
Constructor Details
-
ContextFeatureConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
buildin interfacePrototype.Factory<ContextFeature>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<ContextFeature>
-
weight
public double weight()Description copied from interface:ContextFeatureConfigWeight of the context feature. As it is used by other features, the default is quite high: 1100.0.- Specified by:
weightin interfaceContextFeatureConfig- Returns:
- weight of the feature
-
sockets
Description copied from interface:ContextFeatureConfigList of sockets to register this feature on. If empty, it would get registered on all sockets.- Specified by:
socketsin interfaceContextFeatureConfig- Returns:
- socket names to register on, defaults to empty (all available sockets)
-
name
Description copied from interface:ContextFeatureConfigName of this instance.- Specified by:
namein interfaceContextFeatureConfig- Returns:
- instance name
-
records
Description copied from interface:ContextFeatureConfigList of propagation records.- Specified by:
recordsin interfaceContextFeatureConfig- Returns:
- records configuration
-
toString
-
equals
-
hashCode
public int hashCode()
-