Package org.forgerock.selfservice.core
Class ProgressStageBinder
- java.lang.Object
-
- org.forgerock.selfservice.core.ProgressStageBinder
-
public final class ProgressStageBinder extends Object
Progress stage binder is responsible for creating bindings between the stage configs and their consuming stages.- Since:
- 0.8.0
-
-
Constructor Summary
Constructors Constructor Description ProgressStageBinder(ProgressStageProvider provider, ClassLoader classLoader)
binder - that which binds.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProgressStageBinding<?>
getBinding(StageConfig config)
-
-
-
Constructor Detail
-
ProgressStageBinder
public ProgressStageBinder(ProgressStageProvider provider, ClassLoader classLoader)
binder - that which binds. Constructs a binder from theProgressStageProvider
andClassLoader
. TheProgressStageProvider
is responsible for producing an implementation of aProgressStage
appropriate for a givenClass
. This binder uses theProgressStageProvider
and aStageConfig
to produce aProgressStageBinding
between the appropriateProgressStage
andStageConfig
.- Parameters:
provider
- theProgressStageProvider
which can instantiate aProgressStage
from aClass
classLoader
- aClassLoader
that has visibility to theProgressStage
(s) instantiable from a givenStageConfig
- See Also:
ProgressStageBinding
-
-
Method Detail
-
getBinding
public ProgressStageBinding<?> getBinding(StageConfig config)
Get aProgressStageBinding
between theconfig
and the correspondingProgressStage
. TheProgressStage
is not exposed; rather theProgressStageBinding
enforces a generic binding between theStageConfig
andProgressStage
.- Parameters:
config
- theStageConfig
- Returns:
- a
ProgressStageBinding
-
-