diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2017-09-04 10:05:38 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2017-09-04 10:05:38 -0700 |
commit | cbf149af1f07bb98c1f856948a79dcf3fb0c43b3 (patch) | |
tree | 7901334e10e181ba2c79c09b3a9a32f16c1abc42 /src/main/java/com/p4square/grow/config/Config.java | |
parent | 72ee0f10ddca0d880e50d13446f9ac0269e542eb (diff) |
SESNotificationService to accept multiple destinations.20170904
notificationEmail is now a comma separated list of addresses.
Adding unit tests for SESNotificationService.
Refactored AWS credential selection into ConfigCredentialProvider.
Diffstat (limited to 'src/main/java/com/p4square/grow/config/Config.java')
-rw-r--r-- | src/main/java/com/p4square/grow/config/Config.java | 32 |
1 files changed, 32 insertions, 0 deletions
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)); + } + + } |