Examples of configurationsAt()


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

    @Test
    public void shouldConfiguredFromXmlConfiguration() throws Exception {
        final XMLConfiguration properties = new XMLConfiguration();
        properties.load(rexsterXmlReader);
        final List<HierarchicalConfiguration> graphConfigs = properties.configurationsAt(Tokens.REXSTER_GRAPH_PATH);

        final RexsterApplication ra = new XmlRexsterApplication(graphConfigs);

        Assert.assertEquals(2, ra.getGraphNames().size());
        final List<String> graphNames = new ArrayList<String>(ra.getGraphNames());
View Full Code Here

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

        final XMLConfiguration properties = new XMLConfiguration();
        properties.load(Application.class.getResourceAsStream("rexster-integration-test.xml"));
        rexsterServer = new RexProRexsterServer(properties);

        final List<HierarchicalConfiguration> graphConfigs = properties.configurationsAt(Tokens.REXSTER_GRAPH_PATH);
        final RexsterApplication application = new XmlRexsterApplication(graphConfigs);
        EngineController.configure(-1, null);
        rexsterServer.start(application);
    }
View Full Code Here

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

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

  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

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

          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

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

            // 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.