Class ParameterValueHelper


  • public final class ParameterValueHelper
    extends java.lang.Object
    Utility methods for retrieving values or value providers for the parameterized resource model components.
    • Constructor Detail

      • ParameterValueHelper

        private ParameterValueHelper()
        Prevents instantiation.
    • Method Detail

      • getParameterValues

        public static java.lang.Object[] getParameterValues​(java.util.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 java.util.List<ParamValueFactoryWithSource<?>> createValueProviders​(java.util.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.