Class StepBuilder.ActionAdapter

java.lang.Object
io.hyperfoil.api.config.StepBuilder.ActionAdapter
All Implemented Interfaces:
BuilderBase<StepBuilder.ActionAdapter>, StepBuilder<StepBuilder.ActionAdapter>
Enclosing interface:
StepBuilder<S extends StepBuilder<S>>

public static class StepBuilder.ActionAdapter extends Object implements StepBuilder<StepBuilder.ActionAdapter>
  • Constructor Details

  • Method Details

    • prepareBuild

      public void prepareBuild()
      Specified by:
      prepareBuild in interface BuilderBase<StepBuilder.ActionAdapter>
    • copy

      public StepBuilder.ActionAdapter copy(Object newParent)
      Description copied from interface: BuilderBase
      Some scenarios copy its parts from one place to another, either during parsing phase (e.g. through YAML anchors) or in BuilderBase.prepareBuild(). In order to make sure that modification in one place does not accidentally change the original one we require defining a deep copy method on each builder. The only exception is when the builder is immutable (including potential children builder); in that case the deep copy is not necessary and this method can return this.

      The default implementation uses reflection to create a deep copy of all collections and maps, calling copy() on all objects implementing BuilderBase.

      Specified by:
      copy in interface BuilderBase<StepBuilder.ActionAdapter>
      Parameters:
      newParent - Object passed to a matching constructor.
      Returns:
      Deep copy of this object.
    • build

      public List<Step> build()
      Specified by:
      build in interface StepBuilder<StepBuilder.ActionAdapter>