Interface ParameterUpdater<T,​R>

  • Type Parameters:
    T - custom Java type
    R - String / Collection<String>> type

    public interface ParameterUpdater<T,​R>
    Provider that converts the an object of a custom Java type values to String / Collection<String>> type
    Author:
    Paul Sandoz, Marek Potociar, Gaurav Gupta (gaurav.gupta@payara.fish)
    • Method Detail

      • getName

        String getName()
        Name of the parameter to be udpated
        Returns:
        name of the updated parameter.
      • getDefaultValueString

        String getDefaultValueString()
        Default value (string) that will be used in case input value is not available.
        Returns:
        default (back-up) value.
      • update

        R update​(T parameters)
        Update the value using ParamConverter#toString (and using the configured default value)
        Parameters:
        parameters - custom Java type instance value.
        Returns:
        converted value.