@Test public void getConfig() throws Exception { }
public static synchronized Properties getConfig() { if (config == null) { try { String rpcConfig = "config/rpc-config.properties"; InputStream ins = SofaConfigs.class.getClassLoader().getResourceAsStream(rpcConfig); if (ins == null) { ins = Thread.currentThread().getContextClassLoader() .getResourceAsStream(rpcConfig); } config = new Properties(); config.load(ins); } catch (Exception e) { config = new Properties(); } } return config; }
SofaConfigs { public static synchronized Properties getConfig() { if (config == null) { try { String rpcConfig = "config/rpc-config.properties"; InputStream ins = SofaConfigs.class.getClassLoader().getResourceAsStream(rpcConfig); if (ins == null) { ins = Thread.currentThread().getContextClassLoader() .getResourceAsStream(rpcConfig); } config = new Properties(); config.load(ins); } catch (Exception e) { config = new Properties(); } } return config; } }
SofaConfigs { public static synchronized Properties getConfig() { if (config == null) { try { String rpcConfig = "config/rpc-config.properties"; InputStream ins = SofaConfigs.class.getClassLoader().getResourceAsStream(rpcConfig); if (ins == null) { ins = Thread.currentThread().getContextClassLoader() .getResourceAsStream(rpcConfig); } config = new Properties(); config.load(ins); } catch (Exception e) { config = new Properties(); } } return config; }  }
SofaConfigs { public static synchronized Properties getConfig() { if (config == null) { try { String rpcConfig = "config/rpc-config.properties"; InputStream ins = SofaConfigs.class.getClassLoader().getResourceAsStream(rpcConfig); if (ins == null) { ins = Thread.currentThread().getContextClassLoader() .getResourceAsStream(rpcConfig); } config = new Properties(); config.load(ins); } catch (Exception e) { config = new Properties(); } } return config; }  static synchronized Properties getConfig(); static int getIntegerValue(String key, int defaultValue); static int getIntegerValue(String appName, String key, int defaultValue); static boolean getBooleanValue(String key, boolean defaultValue); static boolean getBooleanValue(String appName, String key, boolean defaultValue); static String getStringValue(String key, String defaultValue); static String getStringValue(String appName, String key, String defaultValue); static void registerExternalConfigLoader(ExternalConfigLoader configLoader); static void unRegisterExternalConfigLoader(ExternalConfigLoader configLoader); }
SofaConfigs { public static synchronized Properties getConfig() { if (config == null) { try { String rpcConfig = "config/rpc-config.properties"; InputStream ins = SofaConfigs.class.getClassLoader().getResourceAsStream(rpcConfig); if (ins == null) { ins = Thread.currentThread().getContextClassLoader() .getResourceAsStream(rpcConfig); } config = new Properties(); config.load(ins); } catch (Exception e) { config = new Properties(); } } return config; }  static synchronized Properties getConfig(); static int getIntegerValue(String key, int defaultValue); static int getIntegerValue(String appName, String key, int defaultValue); static boolean getBooleanValue(String key, boolean defaultValue); static boolean getBooleanValue(String appName, String key, boolean defaultValue); static String getStringValue(String key, String defaultValue); static String getStringValue(String appName, String key, String defaultValue); static void registerExternalConfigLoader(ExternalConfigLoader configLoader); static void unRegisterExternalConfigLoader(ExternalConfigLoader configLoader);  }