Class RestrictedComponentFactory
- java.lang.Object
-
- io.streamthoughts.azkarra.runtime.components.RestrictedComponentFactory
-
public class RestrictedComponentFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description RestrictedComponentFactory(ComponentFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Optional<GettableComponent<T>>
findComponentByRestriction(Class<T> componentType, Conf componentConfig, Restriction restriction)
Finds a component for the given type that is available for the given config and restriction.
-
-
-
Constructor Detail
-
RestrictedComponentFactory
public RestrictedComponentFactory(ComponentFactory factory)
-
-
Method Detail
-
findComponentByRestriction
public <T> Optional<GettableComponent<T>> findComponentByRestriction(Class<T> componentType, Conf componentConfig, Restriction restriction)
Finds a component for the given type that is available for the given config and restriction.- Type Parameters:
T
- the component type.- Parameters:
componentType
- theClass
of the component.componentConfig
- theConf
object to be used for resolved available components.restriction
- theRestriction
.- Returns:
- an optional
GettableComponent
.
-
-