Examples of ConfigParser


Examples of fr.soleil.lib.flyscan.model.parsing.configuration.ConfigParser

        content[45] = " order = 3";
        content[46] = "enable = true";
        content[47] = "action = preScan";
        content[48] = "parameter:value:execution_time_ms = 2000";

        ConfigParser configParser = ConfigParser.getInstance();
        Configuration configuration = configParser.parse("configTest", content);

        assertNotNull(configuration);

        assertEquals(4, configuration.getSections().size());
View Full Code Here

Examples of fr.soleil.lib.flyscan.model.parsing.configuration.ConfigParser

        content[69] = "name = basic_context_validation";
        content[70] = "parameter:value:attribute = sys/tg_test/1/boolean_scalar";
        content[71] = "parameter:value:invalid_value = false";
        content[72] = "-";

        ConfigParser configParser = ConfigParser.getInstance();
        Configuration configuration = configParser.parse("configTest", content);

        assertNotNull(configuration);

        ActorSection actorSection = null;
        for (Section s : configuration.getSections()) {
View Full Code Here

Examples of fr.soleil.lib.flyscan.model.parsing.configuration.ConfigParser

        content[99] = "parameter:value:str_scalar =  this is an mutable string";
        content[100] = "parameter:value:bool_list = [False, True, False, True]";
        content[101] = "parameter:value:num_scalar_2 = 30";
        content[102] = "-";

        ConfigParser configParser = ConfigParser.getInstance();
        Configuration configuration = configParser.parse("configTest", content);

        assertNotNull(configuration);

        ActorSection actorSection = null;
        for (Section s : configuration.getSections()) {
View Full Code Here

Examples of greed.conf.ConfigParser

                conf = userConf.withFallback(conf);
            }
        }

        conf = conf.resolve();
        return new ConfigParser().parseAndCheck("greed", conf.getConfig("greed"), GreedConfig.class);
    }
View Full Code Here

Examples of io.s4.comm.util.ConfigParser

        System.err.println("java TaskSetupApp <zk_address> [clean|setup] setup_config_xml");
        System.exit(1);
    }

    private static void doMain(String zkAddress, boolean clean, boolean setup, String setupXml) {
        ConfigParser parser = new ConfigParser();
        Config config = parser.parse(setupXml);
        for (Cluster cluster : config.getClusters()) {
            processCluster(clean, zkAddress, cluster, config.getVersion());
        }
    }
View Full Code Here

Examples of org.ajax4jsf.tests.org.apache.shale.test.config.ConfigParser

      InternetResourceBuilder.setInstance(null);
    }
    webXml = new WebXml();
    webXml.init(servletContext, "A4J");

    ConfigParser parser = new ConfigParser();
    parser.parse(parser.getPlatformURLs());

    Enumeration<URL> resources = getClass().getClassLoader().getResources("META-INF/faces-config.xml");
    while (resources.hasMoreElements()) {
      parser.parse((URL) resources.nextElement());
    }
   
    externalContext = new MockExternalContext(externalContext);
    facesContext.setExternalContext(externalContext);
    elContext = facesContext.getELContext();
View Full Code Here

Examples of org.apache.commons.chain.config.ConfigParser

   {
      ValueParam confFile = params.getValueParam("config-file");
      if (confFile != null)
      {
         String path = confFile.getValue();
         ConfigParser parser = new ConfigParser();
         // may work for StandaloneContainer
         ClassLoader cl = Thread.currentThread().getContextClassLoader();
         URL res = cl.getResource(path);
         // for PortalContainer
         if (res == null)
            res = configurationManager.getResource(path);
         if (res == null)
            throw new Exception("Resource not found " + path);
         log.info("Catalog configuration found at " + res);
         parser.parse(res);
      }

   }
View Full Code Here

Examples of org.apache.commons.chain.config.ConfigParser

   public CommandService()
   {
      this.catalogFactory = CatalogFactoryBase.getInstance();

      ConfigParser parser = new ConfigParser();
      this.digester = parser.getDigester();
   }
View Full Code Here

Examples of org.apache.commons.chain.config.ConfigParser

   public CommandService()
   {
      this.catalogFactory = CatalogFactoryBase.getInstance();

      final ConfigParser parser = new ConfigParser();
      this.digester = SecurityHelper.doPrivilegedAction(new PrivilegedAction<Digester>()
      {
         public Digester run()
         {
            return parser.getDigester();
         }
      });
   }
View Full Code Here

Examples of org.apache.commons.chain.config.ConfigParser

   {
      ValueParam confFile = params.getValueParam("config-file");
      if (confFile != null)
      {
         final String path = confFile.getValue();
         final ConfigParser parser = new ConfigParser();
         // may work for StandaloneContainer
        
         URL res = AccessController.doPrivileged(new PrivilegedAction<URL>()
         {
            public URL run()
            {
               return Thread.currentThread().getContextClassLoader().getResource(path);
            }
         });
        
         // for PortalContainer
         if (res == null)
            res = configurationManager.getResource(path);
         if (res == null)
            throw new Exception("Resource not found " + path);
         log.info("Catalog configuration found at " + res);
        
         final URL fRes = res;
         AccessController.doPrivileged(new PrivilegedExceptionAction<Void>()
         {
            public Void run() throws Exception
            {
               parser.parse(fRes);
               return null;
            }
         });
      }
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.