Package io.hyperfoil.api.config
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 java.lang.Object implements StepBuilder<StepBuilder.ActionAdapter>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.hyperfoil.api.config.BuilderBase
BuilderBase.CopyUtil, BuilderBase.IgnoreCopy, BuilderBase.ThrowingSupplier<T>
-
Nested classes/interfaces inherited from interface io.hyperfoil.api.config.StepBuilder
StepBuilder.ActionAdapter, StepBuilder.ActionBuilderConverter, StepBuilder.ActionStep
-
-
Constructor Summary
Constructors Constructor Description ActionAdapter(Action.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Step>build()StepBuilder.ActionAdaptercopy(java.lang.Object newParent)Some scenarios copy its parts from one place to another, either during parsing phase (e.g.voidprepareBuild()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.hyperfoil.api.config.StepBuilder
id
-
-
-
-
Constructor Detail
-
ActionAdapter
public ActionAdapter(Action.Builder builder)
-
-
Method Detail
-
prepareBuild
public void prepareBuild()
- Specified by:
prepareBuildin interfaceBuilderBase<StepBuilder.ActionAdapter>
-
copy
public StepBuilder.ActionAdapter copy(java.lang.Object newParent)
Description copied from interface:BuilderBaseSome scenarios copy its parts from one place to another, either during parsing phase (e.g. through YAML anchors) or inBuilderBase.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 returnthis.The default implementation uses reflection to create a deep copy of all collections and maps, calling
copy()on all objects implementingBuilderBase.- Specified by:
copyin interfaceBuilderBase<StepBuilder.ActionAdapter>- Parameters:
newParent- Object passed to a matching constructor.- Returns:
- Deep copy of this object.
-
build
public java.util.List<Step> build()
- Specified by:
buildin interfaceStepBuilder<StepBuilder.ActionAdapter>
-
-