Interface ConditionContext<T extends ComponentDescriptor>
-
public interface ConditionContext<T extends ComponentDescriptor>
The context information for use by aCondition
matching aComponentDescriptor
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getComponent()
ComponentFactory
getComponentFactory()
Get theComponentFactory
that holds the component descriptor should the condition match.Conf
getConfig()
Get the configuration that was passed to get the component instance.
-
-
-
Method Detail
-
getComponentFactory
ComponentFactory getComponentFactory()
Get theComponentFactory
that holds the component descriptor should the condition match. The returned registry should not be used to register a new component descriptor.- Returns:
- the
ComponentFactory
; cannot benull
.
-
getConfig
Conf getConfig()
Get the configuration that was passed to get the component instance.- Returns:
- the
Conf
object; cannot benull
.
-
getComponent
T getComponent()
- Returns:
- the component that should match the condition.
-
-