1 package com.beust.jcommander; 2 3 /** 4 * A factory to create {@link IStringConverter} instances. 5 * 6 * This interface lets you specify your converters in one place instead of having them repeated all over your argument classes. 7 * 8 * @author simon04 9 * @see IStringConverterFactory 10 */ 11 public interface IStringConverterInstanceFactory { 12 /** 13 * Obtain a converter instance for parsing {@code parameter} as type {@code forType} 14 * @param parameter the parameter to parse 15 * @param forType the type class 16 * @param optionName the name of the option used on the command line 17 * @return a converter instance 18 */ getConverterInstance(Parameter parameter, Class<?> forType, String optionName)19 IStringConverter<?> getConverterInstance(Parameter parameter, Class<?> forType, String optionName); 20 } 21