Package org.forgerock.selfservice.core
Class ProgressStageBinder
java.lang.Object
org.forgerock.selfservice.core.ProgressStageBinder
Progress stage binder is responsible for creating bindings between the stage configs and their consuming stages.
- Since:
- 0.8.0
-
Constructor Summary
ConstructorsConstructorDescriptionProgressStageBinder(ProgressStageProvider provider, ClassLoader classLoader) binder - that which binds. -
Method Summary
-
Constructor Details
-
ProgressStageBinder
binder - that which binds. Constructs a binder from theProgressStageProviderandClassLoader. TheProgressStageProvideris responsible for producing an implementation of aProgressStageappropriate for a givenClass. This binder uses theProgressStageProviderand aStageConfigto produce aProgressStageBindingbetween the appropriateProgressStageandStageConfig.- Parameters:
provider- theProgressStageProviderwhich can instantiate aProgressStagefrom aClassclassLoader- aClassLoaderthat has visibility to theProgressStage(s) instantiable from a givenStageConfig- See Also:
-
-
Method Details
-
getBinding
Get aProgressStageBindingbetween theconfigand the correspondingProgressStage. TheProgressStageis not exposed; rather theProgressStageBindingenforces a generic binding between theStageConfigandProgressStage.- Parameters:
config- theStageConfig- Returns:
- a
ProgressStageBinding
-