private XMLConfiguration loadXMLConfig() throws Exception { InputStream is = null; XMLConfiguration xmlConfig = null; xmlConfig = new XMLConfiguration( null, new MockConfigurationResourceProvider( () -> XMLConfiguration.class.getResourceAsStream( XMLConfigurationBackwardsCompatibilityTest .LATEST_FILENAME))); return xmlConfig; }
private XMLConfiguration loadXMLConfig() { XMLConfiguration xmlConfig = null; try { xmlConfig = new XMLConfiguration( null, new MockConfigurationResourceProvider( () -> XMLConfiguration.class.getResourceAsStream( XMLConfigurationBackwardsCompatibilityTest .GWC_125_CONFIG_FILE))); } catch (Exception e) { // Do nothing } return xmlConfig; } }
private XMLConfiguration loadXMLConfig() { XMLConfiguration xmlConfig = null; try { xmlConfig = new XMLConfiguration( null, new MockConfigurationResourceProvider( () -> XMLConfiguration.class.getResourceAsStream( XMLConfigurationBackwardsCompatibilityTest .GWC_125_CONFIG_FILE))); } catch (Exception e) { // Do nothing } return xmlConfig; } }
private XMLConfiguration loadXMLConfig() { XMLConfiguration xmlConfig = null; try { xmlConfig = new XMLConfiguration( null, new MockConfigurationResourceProvider( () -> XMLConfiguration.class.getResourceAsStream( XMLConfigurationBackwardsCompatibilityTest .GWC_125_CONFIG_FILE))); } catch (Exception e) { // Do nothing } return xmlConfig; }
private XMLConfiguration loadXMLConfig() { XMLConfiguration xmlConfig = null; try { xmlConfig = new XMLConfiguration( null, new MockConfigurationResourceProvider( () -> XMLConfiguration.class.getResourceAsStream( XMLConfigurationBackwardsCompatibilityTest .GWC_125_CONFIG_FILE))); } catch (Exception e) { // Do nothing } return xmlConfig; } }
private XMLConfiguration loadXMLConfig() { XMLConfiguration xmlConfig = null; try { xmlConfig = new XMLConfiguration( context.getContextProvider(), new MockConfigurationResourceProvider( () -> XMLConfiguration.class.getResourceAsStream( XMLConfigurationBackwardsCompatibilityTest .LATEST_FILENAME))); } catch (Exception e) { // Do nothing } return xmlConfig; }
private XMLConfiguration loadConfig(String fileName) throws Exception { try (InputStream is = XMLConfiguration.class.getResourceAsStream(fileName); ) { Node root = XMLConfiguration.loadDocument(is); print(root.getOwnerDocument()); } XMLConfiguration xmlConfig = new XMLConfiguration( null, new MockConfigurationResourceProvider( () -> XMLConfiguration.class.getResourceAsStream(fileName))); GridSetBroker gsb = new GridSetBroker(Arrays.asList(new DefaultGridsets(true, true), xmlConfig)); xmlConfig.setGridSetBroker(gsb); xmlConfig.afterPropertiesSet(); Iterator<TileLayer> iter = xmlConfig.getLayers().iterator(); while (iter.hasNext()) { TileLayer layer = iter.next(); layer.initialize(gsb); } return xmlConfig; }
new XMLConfiguration( extensions.getContextProvider(), new MockConfigurationResourceProvider( () -> this.getClass()