@Test public void getPropTest() { assertEquals("asdf's blog", p.getProperty("blog.name")); assertEquals("yuzhouwan.com", p.getProperty("site.domain")); }
public String getProperty(String key, boolean withinJar) { if (isEmpty(key)) return null; String value = PROPERTIES.getProperty(key); if (withinJar && isEmpty(value)) { String valueJar = JarUtils.getInstance().getProperty(key); return isEmpty(valueJar) ? value : valueJar; } return value; }
PropUtils { public String getProperty(String key, boolean withinJar) { if (isEmpty(key)) return null; String value = PROPERTIES.getProperty(key); if (withinJar && isEmpty(value)) { String valueJar = JarUtils.getInstance().getProperty(key); return isEmpty(valueJar) ? value : valueJar; } return value; } }
PropUtils { public String getProperty(String key, boolean withinJar) { if (isEmpty(key)) return null; String value = PROPERTIES.getProperty(key); if (withinJar && isEmpty(value)) { String valueJar = JarUtils.getInstance().getProperty(key); return isEmpty(valueJar) ? value : valueJar; } return value; } private  PropUtils(List<String> confPathList); }
PropUtils { public String getProperty(String key, boolean withinJar) { if (isEmpty(key)) return null; String value = PROPERTIES.getProperty(key); if (withinJar && isEmpty(value)) { String valueJar = JarUtils.getInstance().getProperty(key); return isEmpty(valueJar) ? value : valueJar; } return value; } private  PropUtils(List<String> confPathList); static PropUtils getInstance(); String getProperty(String key, boolean withinJar); String getPropertyInternal(String key); String getProperty(String key); String getProperty(String key, String defaultValue); boolean addProperty(Properties properties); boolean addProperty(Properties properties, boolean isCover); boolean addProperty(String key, String value); Properties getProperties(); }
PropUtils { public String getProperty(String key, boolean withinJar) { if (isEmpty(key)) return null; String value = PROPERTIES.getProperty(key); if (withinJar && isEmpty(value)) { String valueJar = JarUtils.getInstance().getProperty(key); return isEmpty(valueJar) ? value : valueJar; } return value; } private  PropUtils(List<String> confPathList); static PropUtils getInstance(); String getProperty(String key, boolean withinJar); String getPropertyInternal(String key); String getProperty(String key); String getProperty(String key, String defaultValue); boolean addProperty(Properties properties); boolean addProperty(Properties properties, boolean isCover); boolean addProperty(String key, String value); Properties getProperties();  }