Class PropertiesHelper


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getPropertyValue​(java.util.Properties properties, java.lang.String key)  
      static java.util.Properties load​(java.lang.String resource)  
      static java.util.Properties load​(java.lang.String resource, java.lang.String defaultResource)  
      static void verifyProperties​(java.util.Properties properties, java.lang.String... requiredKeys)  
      • Methods inherited from class java.lang.Object

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

      • PropertiesHelper

        public PropertiesHelper()
    • Method Detail

      • load

        public static java.util.Properties load​(java.lang.String resource,
                                                java.lang.String defaultResource)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • load

        public static java.util.Properties load​(java.lang.String resource)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • verifyProperties

        public static void verifyProperties​(java.util.Properties properties,
                                            java.lang.String... requiredKeys)
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getPropertyValue

        public static java.lang.String getPropertyValue​(java.util.Properties properties,
                                                        java.lang.String key)