/** * Generates a file path warning for the key. */ private String generateFilePathWarning(String key) { return String.format(" as %s in %s.", getPropertyKey(key), filePath); } }
/** * Generates a file path warning for the key. */ private String generateFilePathWarning(String key) { return String.format(" as %s in %s.", getPropertyKey(key), filePath); } }
/** * Reads properties from the provided {@link Configuration} object * <br><br> * Understands the following properties suffixes: * <br><br> * <ul> * <li>clientId</li> * <li>clientSecret</li> * </ul><br> * For example, the AdWords OAuth2 client ID can be read from: * <code>api.adwords.clientId</code> * * @param config the configuration * @return Builder populated from the Configuration */ @Override public GoogleClientSecretsForApiBuilder from(Configuration config) { clientId = config.getString(getPropertyKey("clientId"), null); clientSecret = config.getString(getPropertyKey("clientSecret"), null); return this; }
/** * Reads properties from the provided {@link Configuration} object * <br><br> * Understands the following properties suffixes: * <br><br> * <ul> * <li>clientId</li> * <li>clientSecret</li> * </ul><br> * For example, the AdWords OAuth2 client ID can be read from: * <code>api.adwords.clientId</code> * * @param config the configuration * @return Builder populated from the Configuration */ @Override public GoogleClientSecretsForApiBuilder from(Configuration config) { clientId = config.getString(getPropertyKey("clientId"), null); clientSecret = config.getString(getPropertyKey("clientSecret"), null); return this; }