Class PropertiesToMapConverter


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.Object> propertiesToMapConverter​(java.util.Properties properties)
      Converts the given properties to a nested map.
      • Methods inherited from class java.lang.Object

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

      • PropertiesToMapConverter

        public PropertiesToMapConverter()
    • Method Detail

      • propertiesToMapConverter

        public static java.util.Map<java.lang.String,​java.lang.Object> propertiesToMapConverter​(java.util.Properties properties)
        Converts the given properties to a nested map. Example: if the properties are as follows security.general.ssl.enabled=true security.general.ssl.port=8443 The constructed map will be as follows security: general: ssl: enabled: true port: 8443
        Parameters:
        properties -
        Returns:
        a nested map