Class PropertyFileDefaultProvider
java.lang.Object
com.beust.jcommander.defaultprovider.PropertyFileDefaultProvider
- All Implemented Interfaces:
IDefaultProvider
A default provider that reads its default values from a property file.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
DEFAULT_FILE_NAME
- See Also:
-
-
Constructor Details
-
PropertyFileDefaultProvider
public PropertyFileDefaultProvider() -
PropertyFileDefaultProvider
-
-
Method Details
-
getDefaultValueFor
- Specified by:
getDefaultValueFor
in interfaceIDefaultProvider
- Parameters:
optionName
- The name of the option as specified in the names() attribute of the @Parameter option (e.g. "-file").- Returns:
- the default value for this option.
-