Examples of XMLConfigReader


Examples of com.clarkparsia.empire.config.io.impl.XmlConfigReader

        aConfigStream = new FileInputStream("empire.config.properties");
        aReader = new PropertiesConfigReader();
      }
      else if (new File("empire.xml").exists()) {
        aConfigStream = new FileInputStream("empire.xml");
        aReader = new XmlConfigReader();
      }
      else if (new File("empire.config.xml").exists()) {
        aConfigStream = new FileInputStream("empire.config.xml");
        aReader = new XmlConfigReader();
      }
    }
    catch (FileNotFoundException e) {
      LOGGER.error("Count not find config file: " + e.getMessage());
    }
View Full Code Here

Examples of com.clarkparsia.empire.config.io.impl.XmlConfigReader

  @Parameterized.Parameters
  public static Collection configurations() {
    return Arrays.asList(new Object[][] {
        { new PropertiesConfigReader(), getProperiesFormatConfig() },
        { new XmlConfigReader(), getXmlFormatConfig() }
    });
  }
View Full Code Here

Examples of de.xanders.common.config.XmlConfigReader

    InputStream log4jInputStream = servletContext.getResourceAsStream(log4jSourceName);
    Log4JConfigReader log4JConfigReader = new Log4JConfigReader(log4jInputStream);

    String configSourceName = servletContext.getInitParameter(XANDERSONE_CONFIG);
    InputStream configInputStream = servletContext.getResourceAsStream(configSourceName); */
    XmlConfigReader xmlConfigReader = new XmlConfigReader();
    configParams = xmlConfigReader.getProperties();
    Iterator iter = configParams.entrySet().iterator();
    while (iter.hasNext()) {
      entry = (Entry) iter.next();
      servletContext.setAttribute((String)entry.getKey(), (String)entry.getValue());
      System.out.println("Property: " + (String)entry.getKey() + " => " + (String)entry.getValue());
View Full Code Here

Examples of org.vfny.geoserver.global.xml.XMLConfigReader

        //DJB: changed for geoserver_data_dir   
       // File rootDir = new File(sc.getRealPath("/"));
       
        File rootDir =  GeoserverDataDirectory.getGeoserverDataDirectory(sc);

        XMLConfigReader configReader;

        try {
            configReader = new XMLConfigReader(rootDir,sc);
        } catch (ConfigurationException configException) {
            configException.printStackTrace();

            return mapping.findForward("welcome");

            //throw new ServletException( configException );
        }

        if (configReader.isInitialized()) {
            // These are on separate lines so we can tell with the
            // stack trace/debugger where things go wrong
            wmsDTO = configReader.getWms();
            wfsDTO = configReader.getWfs();
            geoserverDTO = configReader.getGeoServer();
            dataDTO = configReader.getData();
        } else {
            System.err.println(
                "Config Reader not initialized for LoadXMLAction.execute().");

            return mapping.findForward("welcome");
View Full Code Here

Examples of org.vfny.geoserver.global.xml.XMLConfigReader

        ServletContext sc = as.getServletContext();
        File geoserverDataDir = GeoserverDataDirectory.getGeoserverDataDirectory(sc); //geoserver_home fix

        try {
            File f = geoserverDataDir; //geoserver_home fix
            XMLConfigReader cr = new XMLConfigReader(f,sc);
            GeoServer gs = new GeoServer();
            sc.setAttribute(GeoServer.WEB_CONTAINER_KEY, gs);
           
            Data dt = new Data(f,gs);
            sc.setAttribute(Data.WEB_CONTAINER_KEY, dt);
           
            WFS wfs = new WFS();
            sc.setAttribute(WFS.WEB_CONTAINER_KEY, wfs);
           
            WMS wms = new WMS();
            sc.setAttribute(WMS.WEB_CONTAINER_KEY, wms);
           
            GeoValidator gv = new GeoValidator();
            sc.setAttribute(GeoValidator.WEB_CONTAINER_KEY, gv);

            if (cr.isInitialized()) {
                gs.load(cr.getGeoServer(),sc);
                wfs.load(cr.getWfs());
                wms.load(cr.getWms());
                dt.load(cr.getData());
               
                wfs.setGeoServer(gs);
                wms.setGeoServer(gs);
                wfs.setData(dt);
                wms.setData(dt);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.