Package org.apache.commons.configuration

Examples of org.apache.commons.configuration.XMLConfiguration.configurationsAt()


    XMLConfiguration properties = new XMLConfiguration();
    properties.load(rexsterConf);
    rexsterConf.close();

    List<HierarchicalConfiguration> graphConfigs =
      properties.configurationsAt(Tokens.REXSTER_GRAPH_PATH);
    RexsterApplication application  = new XmlRexsterApplication(graphConfigs);
    server = new HttpRexsterServer(properties);

    int scriptEngineThreshold =
      properties.getInt("script-engine-reset-threshold",
View Full Code Here


  public void writeConf() throws UnableToCompleteException {
    try {
      XMLConfiguration xmlConfig = new XMLConfiguration("mvc4g-conf.xml");
      sendErrorIfNull(xmlConfig, "mvc4g-conf.xml is missing");

      Iterator<HierarchicalConfiguration> controllerIt = xmlConfig
          .configurationsAt("controller").iterator();

      Iterator<HierarchicalConfiguration> actionIt = null;
      Iterator<HierarchicalConfiguration> viewIt = null;
View Full Code Here

          sourceWriter.println(CLOSE_BRACKET);
        }

      }

      Iterator<HierarchicalConfiguration> startIt = xmlConfig.configurationsAt("start").iterator();
      if (startIt.hasNext()) {
        HierarchicalConfiguration start = startIt.next();
        controllerName = start.getString("[@controllerName]");
        sendErrorIfNull(controllerName,
            "Start: Controller name is missing");
View Full Code Here

            // System.out.println(xmlConfiguration.getList("social-networks.social-network.social-network-name"));
            // System.out.println(xmlConfiguration.getList("social-networks.social-network.social-network-name").size());
            // System.out.println(xmlConfiguration.getList("social-networks"));
            // System.out.println(xmlConfiguration.getList("social-networks").size());

            List fields = xmlConfiguration
                    .configurationsAt("tables.table(0).fields.field");
            for (Iterator it = fields.iterator(); it.hasNext();) {
                HierarchicalConfiguration sub = (HierarchicalConfiguration) it
                        .next();
                // sub contains all data about a single field
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.