public static Properties loadProperties ( final Class < ? > clasz , final String filename ) { checkNotNull ( "clasz" , clasz ) ; checkNotNull ( "filename" , filename ) ; final String path = getPackagePath ( clasz ) ; final String resPath = path + "/" + filename ; return loadProperties ( clasz . getClassLoader ( ) , resPath ) ; }
Load properties from classpath .