Class ParameterValueHelper


  • public final class ParameterValueHelper
    extends Object
    Utility methods for retrieving values or value providers for the parameterized resource model components.
    Author:
    Marek Potociar
    • Method Detail

      • getParameterValues

        public static Object[] getParameterValues​(List<ParamValueFactoryWithSource<?>> valueProviders,
                                                  ContainerRequest request)
        Get the array of parameter values.
        Parameters:
        valueProviders - a list of value providers.
        Returns:
        array of parameter values provided by the value providers.
      • createValueProviders

        public static List<ParamValueFactoryWithSource<?>> createValueProviders​(Collection<ValueParamProvider> valueSuppliers,
                                                                                Parameterized parameterized)
        Create list of parameter value providers for the given parameterized resource model component.
        Parameters:
        valueSuppliers - all registered value suppliers.
        parameterized - parameterized resource model component.
        Returns:
        list of parameter value providers for the parameterized component.