Class EmailNotificationParamsConfiguration


  • public class EmailNotificationParamsConfiguration
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.stream.Stream<java.lang.String> getLines​(java.lang.String mappingFilePath)
      Helper method to read lines from the configuration file
      java.util.Map<java.lang.String,​java.lang.String> getLocation()  
      java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> getParamsToReplace()
      Gets the parameters that is required for
      void setLocation​(java.util.Map<java.lang.String,​java.lang.String> location)
      Setter to create the bean from EmailNotificationParamsFactory Key will be the name of the context Value will be the location of the file that contains the parameters for the given key.
      void setParamsToReplace​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> paramsToReplace)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EmailNotificationParamsConfiguration

        public EmailNotificationParamsConfiguration()
    • Method Detail

      • getParamsToReplace

        public java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> getParamsToReplace()
        Gets the parameters that is required for
        Returns:
        a Map of Map parameters, the below is an example of two entries in the map { ContextName1 : { ${param1}=value2, ${param2}=value2 } }, { ContextName2 : { ${param1}=value2, ${param2}=value2, ${param3}=value3 } }
      • setParamsToReplace

        public void setParamsToReplace​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> paramsToReplace)
      • getLocation

        public java.util.Map<java.lang.String,​java.lang.String> getLocation()
      • setLocation

        public void setLocation​(java.util.Map<java.lang.String,​java.lang.String> location)
        Setter to create the bean from EmailNotificationParamsFactory Key will be the name of the context Value will be the location of the file that contains the parameters for the given key.
        Parameters:
        location - key = context name, value = location of the file.
      • getLines

        public static java.util.stream.Stream<java.lang.String> getLines​(java.lang.String mappingFilePath)
                                                                  throws java.io.IOException
        Helper method to read lines from the configuration file
        Parameters:
        mappingFilePath - path of the configuration file
        Returns:
        Stream of String that represent the lines of the configuration file.
        Throws:
        java.io.IOException - file issues