Interface IStringConverterInstanceFactory


  • public interface IStringConverterInstanceFactory
    A factory to create IStringConverter instances. This interface lets you specify your converters in one place instead of having them repeated all over your argument classes.
    See Also:
    IStringConverterFactory
    • Method Detail

      • getConverterInstance

        IStringConverter<?> getConverterInstance​(Parameter parameter,
                                                 java.lang.Class<?> forType,
                                                 java.lang.String optionName)
        Obtain a converter instance for parsing parameter as type forType
        Parameters:
        parameter - the parameter to parse
        forType - the type class
        optionName - the name of the option used on the command line
        Returns:
        a converter instance