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
ConstructorsModifierConstructorDescriptionprotected
ContextFeatureConfigImpl
(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.boolean
get()
int
hashCode()
name()
Name of this instance.records()
List of propagation records.sockets()
List of sockets to register this feature on.toString()
double
weight()
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.Factory
Create a new instance of the runtime type from this config object.- Specified by:
build
in interfacePrototype.Factory<ContextFeature>
- Returns:
- new configured runtime instance
-
get
- Specified by:
get
in interfaceSupplier<ContextFeature>
-
weight
public double weight()Description copied from interface:ContextFeatureConfig
Weight of the context feature. As it is used by other features, the default is quite high: 1100.0.- Specified by:
weight
in interfaceContextFeatureConfig
- Returns:
- weight of the feature
-
sockets
Description copied from interface:ContextFeatureConfig
List of sockets to register this feature on. If empty, it would get registered on all sockets.- Specified by:
sockets
in interfaceContextFeatureConfig
- Returns:
- socket names to register on, defaults to empty (all available sockets)
-
name
Description copied from interface:ContextFeatureConfig
Name of this instance.- Specified by:
name
in interfaceContextFeatureConfig
- Returns:
- instance name
-
records
Description copied from interface:ContextFeatureConfig
List of propagation records.- Specified by:
records
in interfaceContextFeatureConfig
- Returns:
- records configuration
-
toString
-
equals
-
hashCode
public int hashCode()
-