Package org.forgerock.selfservice.core
Class ProgressStageBinding<C extends StageConfig>
- java.lang.Object
-
- org.forgerock.selfservice.core.ProgressStageBinding<C>
-
- Type Parameters:
C- type that describes the stage config
public final class ProgressStageBinding<C extends StageConfig> extends Object
Binds together the progress stage with its config. Acts to enforce the generic binding between the two but also assists in the passing of the config to keep the progress stages from maintaining thread state, therefore promoting thread safety.- Since:
- 0.1.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <C extends StageConfig>
ProgressStageBinding<C>bind(ProgressStage<C> stage, C config)Create a new binder instance.
-
-
-
Method Detail
-
bind
public static <C extends StageConfig> ProgressStageBinding<C> bind(ProgressStage<C> stage, C config)
Create a new binder instance.- Type Parameters:
C- the stage config type shared by the progress stage- Parameters:
stage- the progress stageconfig- the stage config- Returns:
- a new binder instance
-
-