Package com.beust.jcommander
Interface IStringConverterInstanceFactory
-
public interface IStringConverterInstanceFactory
A factory to createIStringConverter
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IStringConverter<?>
getConverterInstance(Parameter parameter, java.lang.Class<?> forType, java.lang.String optionName)
Obtain a converter instance for parsingparameter
as typeforType
-
-
-
Method Detail
-
getConverterInstance
IStringConverter<?> getConverterInstance(Parameter parameter, java.lang.Class<?> forType, java.lang.String optionName)
Obtain a converter instance for parsingparameter
as typeforType
- Parameters:
parameter
- the parameter to parseforType
- the type classoptionName
- the name of the option used on the command line- Returns:
- a converter instance
-
-