Class PropertyFileDefaultProvider

java.lang.Object
com.beust.jcommander.defaultprovider.PropertyFileDefaultProvider
All Implemented Interfaces:
IDefaultProvider

public class PropertyFileDefaultProvider extends Object implements IDefaultProvider
A default provider that reads its default values from a property file.
  • Field Details

  • Constructor Details

    • PropertyFileDefaultProvider

      public PropertyFileDefaultProvider()
    • PropertyFileDefaultProvider

      public PropertyFileDefaultProvider(String fileName)
  • Method Details

    • getDefaultValueFor

      public String getDefaultValueFor(String optionName)
      Specified by:
      getDefaultValueFor in interface IDefaultProvider
      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.