@Test public void testFromProperties() throws IOException { props.setProperty(XmlPropertyReader.CONFIG_PROPERTY, CONFIG_FILE1); assertNotNull(propertyReader.getConfigurationStream(props)); }
protected InputStream getConfigurationStream(final Properties props) { InputStream result = getConfigStreamFromProperties(props); if (result != null) { return result; } result = getConfigStreamFromProperties(System.getProperties()); if (result != null) { return result; } result = resourceClassLoader.getResourceAsStream(CONFIG_FILE_NAME); if (result != null) { return result; } return null; }
XmlPropertyReader extends RefreshablePropertyReader { protected InputStream getConfigurationStream(final Properties props) { InputStream result = getConfigStreamFromProperties(props); if (result != null) { return result; } result = getConfigStreamFromProperties(System.getProperties()); if (result != null) { return result; } result = resourceClassLoader.getResourceAsStream(CONFIG_FILE_NAME); if (result != null) { return result; } return null; } }
XmlPropertyReader extends RefreshablePropertyReader { protected InputStream getConfigurationStream(final Properties props) { InputStream result = getConfigStreamFromProperties(props); if (result != null) { return result; } result = getConfigStreamFromProperties(System.getProperties()); if (result != null) { return result; } result = resourceClassLoader.getResourceAsStream(CONFIG_FILE_NAME); if (result != null) { return result; } return null; } XmlPropertyReader(ClassLoader resourceClassLoader);  XmlPropertyReader(); }
XmlPropertyReader extends RefreshablePropertyReader { protected InputStream getConfigurationStream(final Properties props) { InputStream result = getConfigStreamFromProperties(props); if (result != null) { return result; } result = getConfigStreamFromProperties(System.getProperties()); if (result != null) { return result; } result = resourceClassLoader.getResourceAsStream(CONFIG_FILE_NAME); if (result != null) { return result; } return null; } XmlPropertyReader(ClassLoader resourceClassLoader);  XmlPropertyReader();  }
XmlPropertyReader extends RefreshablePropertyReader { protected InputStream getConfigurationStream(final Properties props) { InputStream result = getConfigStreamFromProperties(props); if (result != null) { return result; } result = getConfigStreamFromProperties(System.getProperties()); if (result != null) { return result; } result = resourceClassLoader.getResourceAsStream(CONFIG_FILE_NAME); if (result != null) { return result; } return null; } XmlPropertyReader(ClassLoader resourceClassLoader);  XmlPropertyReader();  static final String CONFIG_PROPERTY; static final String CONFIG_FILE_NAME; }