Class Context.Builder

java.lang.Object
io.helidon.common.context.Context.Builder
All Implemented Interfaces:
Builder<Context.Builder,Context>, Supplier<Context>
Enclosing interface:
Context

public static class Context.Builder extends Object implements Builder<Context.Builder,Context>
Fluent API builder for Context.
  • Constructor Details

    • Builder

      @Deprecated(forRemoval=true, since="4.0.9") public Builder()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use Context.builder() instead
      This constructor was accidentally left public.
  • Method Details

    • build

      public Context build()
      Description copied from interface: Builder
      Build the instance from this builder.
      Specified by:
      build in interface Builder<Context.Builder,Context>
      Returns:
      instance of the built type
    • parent

      public Context.Builder parent(Context parent)
      Parent of the new context.
      Parameters:
      parent - parent context
      Returns:
      updated builder instance
    • id

      public Context.Builder id(String id)
      Identification of the new context, should be unique within this runtime.
      Parameters:
      id - context identification
      Returns:
      updated builder instance