Class DefaultsParams.BuilderBase<BUILDER extends DefaultsParams.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends DefaultsParams>

java.lang.Object
io.helidon.service.codegen.DefaultsParams.BuilderBase<BUILDER,PROTOTYPE>
Type Parameters:
BUILDER - type of the builder extending this abstract builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.Builder.buildPrototype()
All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
DefaultsParams.Builder
Enclosing interface:
DefaultsParams

public abstract static class DefaultsParams.BuilderBase<BUILDER extends DefaultsParams.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends DefaultsParams> extends Object implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for DefaultsParams.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(DefaultsParams prototype)
      Update this builder from an existing prototype instance. This method disables automatic service discovery.
      Parameters:
      prototype - existing prototype to update this builder from
      Returns:
      updated builder instance
    • mapperQualifier

      public BUILDER mapperQualifier(String mapperQualifier)
      Qualifier used when mapping string values to target type.
      Parameters:
      mapperQualifier - mapper qualifier
      Returns:
      updated builder instance
      See Also:
    • mappersField

      public BUILDER mappersField(String mappersField)
      Name of the field/variable that contains a Mappers instance.
      Parameters:
      mappersField - mappers field name
      Returns:
      updated builder instance
      See Also:
    • name

      public BUILDER name(String name)
      Name as sent to default value provider.
      Parameters:
      name - name to use with provider
      Returns:
      updated builder instance
      See Also:
    • clearContextField

      public BUILDER clearContextField()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • contextField

      public BUILDER contextField(String contextField)
      Name of the field/variable of the context to be sent to default value provider.
      Parameters:
      contextField - context name
      Returns:
      updated builder instance
      See Also:
    • mapperQualifier

      public String mapperQualifier()
      Qualifier used when mapping string values to target type.
      Returns:
      the mapper qualifier
    • mappersField

      public String mappersField()
      Name of the field/variable that contains a Mappers instance.
      Returns:
      the mappers field
    • name

      public String name()
      Name as sent to default value provider.
      Returns:
      the name
    • contextField

      public Optional<String> contextField()
      Name of the field/variable of the context to be sent to default value provider.
      Returns:
      the context field
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • preBuildPrototype

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.