Class RestrictedComponentFactory


  • public class RestrictedComponentFactory
    extends Object
    • 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 - the Class of the component.
        componentConfig - the Conf object to be used for resolved available components.
        restriction - the Restriction.
        Returns:
        an optional GettableComponent.