Package io.helidon.common.http
Class ContextualRegistry.Builder
- java.lang.Object
-
- io.helidon.common.http.ContextualRegistry.Builder
-
- All Implemented Interfaces:
Builder<ContextualRegistry>
,Supplier<ContextualRegistry>
- Enclosing interface:
- ContextualRegistry
public static class ContextualRegistry.Builder extends Object implements Builder<ContextualRegistry>
Fluent API builder forContextualRegistry
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextualRegistry
build()
Build the instance from this builder.ContextualRegistry.Builder
id(String id)
Identification of the new context, should be unique within this runtime.ContextualRegistry.Builder
parent(Context parent)
Parent of the new context.
-
-
-
Method Detail
-
build
public ContextualRegistry build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<ContextualRegistry>
- Returns:
- instance of the built type
-
parent
public ContextualRegistry.Builder parent(Context parent)
Parent of the new context.- Parameters:
parent
- parent context- Returns:
- updated builder instance
-
id
public ContextualRegistry.Builder id(String id)
Identification of the new context, should be unique within this runtime.- Parameters:
id
- context identification- Returns:
- updated builder instance
-
-