From cbf149af1f07bb98c1f856948a79dcf3fb0c43b3 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Mon, 4 Sep 2017 10:05:38 -0700 Subject: SESNotificationService to accept multiple destinations. notificationEmail is now a comma separated list of addresses. Adding unit tests for SESNotificationService. Refactored AWS credential selection into ConfigCredentialProvider. --- src/main/java/com/p4square/grow/config/Config.java | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'src/main/java/com/p4square/grow/config/Config.java') diff --git a/src/main/java/com/p4square/grow/config/Config.java b/src/main/java/com/p4square/grow/config/Config.java index 2fc2ea3..f810980 100644 --- a/src/main/java/com/p4square/grow/config/Config.java +++ b/src/main/java/com/p4square/grow/config/Config.java @@ -200,4 +200,36 @@ public class Config { return defaultValue; } + + /** + * Set a value in the config. + * + * @param key Config name + * @param value Config value + */ + public void setString(String key, String value) { + mProperties.setProperty(mDomain + "." + key, value); + } + + /** + * Set a value in the config. + * + * @param key Config name + * @param value Config value + */ + public void setInt(String key, int value) { + setString(key, String.valueOf(value)); + } + + /** + * Set a value in the config. + * + * @param key Config name + * @param value Config value + */ + public void setBoolean(String key, boolean value) { + setString(key, String.valueOf(value)); + } + + } -- cgit v1.2.3