public final class ProgressStageBinder extends Object
Constructor and Description |
---|
ProgressStageBinder(ProgressStageProvider provider,
ClassLoader classLoader)
binder - that which binds.
|
Modifier and Type | Method and Description |
---|---|
ProgressStageBinding<?> |
getBinding(StageConfig config)
|
public ProgressStageBinder(ProgressStageProvider provider, ClassLoader classLoader)
ProgressStageProvider
and ClassLoader
. The
ProgressStageProvider
is responsible for producing an implementation of a ProgressStage
appropriate for a given Class
. This binder uses the ProgressStageProvider
and a
StageConfig
to produce a ProgressStageBinding
between the appropriate ProgressStage
and StageConfig
.provider
- the ProgressStageProvider
which can instantiate a ProgressStage
from a
Class
classLoader
- a ClassLoader
that has visibility to the ProgressStage
(s) instantiable
from a given StageConfig
ProgressStageBinding
public ProgressStageBinding<?> getBinding(StageConfig config)
ProgressStageBinding
between the config
and the corresponding ProgressStage
.
The ProgressStage
is not exposed; rather the ProgressStageBinding
enforces a generic binding
between the StageConfig
and ProgressStage
.config
- the StageConfig
ProgressStageBinding
Copyright © 2010-2018, ForgeRock All Rights Reserved.