/** * Create a new ConfigGetter instance. * * @param configInterface The configuration interface. * @param method The method. */ public ConfigGetter(Class<?> configInterface, Method method) { super(configInterface, method); // not needed for defaulted method, but no harm. defaultValue = ConfigUtil.getDefaultValue(configInterface, method); sourceType = ConfigUtil.getSourceType(configInterface, method); // if (!String.class.equals(method.getReturnType())) factory = TypeFactory.getInstance(configInterface, method); }