public class ConfigUtils extends Object
Constructor and Description |
---|
ConfigUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
cleanOptionName(String name) |
static ConfigOption[] |
createConfigOptionsFromJCommander(Object createOptionsInstance,
boolean includeHidden)
This method will use the parameter descriptions from JCommander to create/populate an
AbstractConfigOptions map.
|
static StringBuilder |
getOptions(Collection<String> strs) |
static StringBuilder |
getOptions(Collection<String> strs,
String prefixStr) |
static Map<String,String> |
populateListFromOptions(StoreFactoryOptions optionsObject)
Take the given options and populate the given options list.
|
static <T extends StoreFactoryOptions> |
populateOptionsFromList(T optionsObject,
Map<String,String> optionList)
Take the given options and populate the given options list.
|
public static StringBuilder getOptions(Collection<String> strs, String prefixStr)
public static StringBuilder getOptions(Collection<String> strs)
public static ConfigOption[] createConfigOptionsFromJCommander(Object createOptionsInstance, boolean includeHidden)
public static <T extends StoreFactoryOptions> T populateOptionsFromList(T optionsObject, Map<String,String> optionList)
public static Map<String,String> populateListFromOptions(StoreFactoryOptions optionsObject)
Copyright © 2013–2022. All rights reserved.