Examples of XmlConfigurator


Examples of fr.norsys.mapper.xml.XMLConfigurator

  private XMLConfigurator xc;
  private MapperManager mgr;

  protected void setUp() throws Exception {
    super.setUp();
    this.xc = new XMLConfigurator();
    this.mgr = new MapperManager();
   
  }
View Full Code Here

Examples of fr.norsys.mapper.xml.XMLConfigurator

  private XMLConfigurator xc;
  private MapperManager mgr;

  protected void setUp() throws Exception {
    super.setUp();
    this.xc = new XMLConfigurator();
    this.mgr = new MapperManager();   
  }
View Full Code Here

Examples of fr.norsys.mapper.xml.XMLConfigurator

  private XMLConfigurator xc;
  private MapperManager mgr;

  protected void setUp() throws Exception {
    super.setUp();
    this.xc = new XMLConfigurator();
    this.mgr = new MapperManager();
   
  }
View Full Code Here

Examples of fr.norsys.mapper.xml.XMLConfigurator

  private MapperManager mgr;

  protected void setUp() throws Exception {
    super.setUp();
    XMLConfigurator xc = new XMLConfigurator();
    this.mgr = new MapperManager();
    // parse XML configuration file
    xc.parse(Thread.currentThread().getContextClassLoader()
        .getResourceAsStream("jndi-sample.xml"));
    // configure manager
    xc.configure(this.mgr);
    this.mgr.set("ldifsource", "canam-personnes-sample.ldif");
    this.mgr.setConfigured();
    this.mgr.start();
  }
View Full Code Here

Examples of net.sf.collabreview.core.configuration.XMLConfigurator

  private static final Log logger = LogFactory.getLog(FactoryFactory.class);

  private ConfigurationData configurationForProducedFactories;

  public void configure(Document document) {
    configure(new XMLConfigurator(null, document.getRootElement()));     //TODO eda
  }
View Full Code Here

Examples of org.jgroups.conf.XmlConfigurator

                Element cfg = (Element) tmp_config;
                tmp=cfg.getNodeName();
                if(!CONFIG.equals(tmp))
                    throw new IOException("invalid configuration: didn't find a \"" + CONFIG + "\" element under \"" + STACK + "\"");

                XmlConfigurator conf=XmlConfigurator.getInstance(cfg);
                // fixes http://jira.jboss.com/jira/browse/JGRP-290
                ConfiguratorFactory.substituteVariables(conf); // replace vars with system props
                String val=conf.getProtocolStackString();
                if(replace) {
                    stacks.put(st_name, val);
                    if(log.isTraceEnabled())
                        log.trace("added config '" + st_name + "'");
                }
View Full Code Here

Examples of org.jgroups.conf.XmlConfigurator

            {
               throw new IOException("Invalid configuration: didn't find a \"" +
                     CONFIG + "\" element under \"" + STACK + "\"");
            }

            XmlConfigurator conf = XmlConfigurator.getInstance(cfg);
            // fixes http://jira.jboss.com/jira/browse/JGRP-290
            ConfiguratorFactory.substituteVariables(conf); // replace vars with system props

            result.put(st_name, new ProtocolStackConfigInfo(st_name, stack_descr, conf));
         }
View Full Code Here

Examples of org.jgroups.conf.XmlConfigurator

    */
   public static String getClusterConfigFromFile(URL url)
   {
      try
      {
         XmlConfigurator conf = XmlConfigurator.getInstance(url);
         String tmp = conf.getProtocolStackString();
         // parse this string for ${} substitutions
         // Highly crappy approach!!
         tmp = tmp.replace("${jgroups.udp.mcast_addr:228.10.10.10}", "228.10.10.10");
         tmp = tmp.replace("${jgroups.udp.mcast_port:45588}", "45588");
         tmp = tmp.replace("${jgroups.udp.ip_ttl:2}", "2");
View Full Code Here

Examples of org.jgroups.conf.XmlConfigurator

    */
   public static String getClusterConfigFromProperties(String properties)
   {
      try
      {
         XmlConfigurator conf = XmlConfigurator.getInstance(ConfiguratorFactory.getConfigStream(properties));
         String tmp = conf.getProtocolStackString();
         // parse this string for ${} substitutions
         // Highly crappy approach!!
         tmp = tmp.replace("${jgroups.udp.mcast_addr:228.10.10.10}", "228.10.10.10");
         tmp = tmp.replace("${jgroups.udp.mcast_port:45588}", "45588");
         tmp = tmp.replace("${jgroups.udp.ip_ttl:2}", "2");
View Full Code Here

Examples of org.jgroups.conf.XmlConfigurator

                Element cfg = (Element) tmp_config;
                tmp=cfg.getNodeName();
                if(!CONFIG.equals(tmp))
                    throw new IOException("invalid configuration: didn't find a \"" + CONFIG + "\" element under \"" + STACK + "\"");

                XmlConfigurator conf=XmlConfigurator.getInstance(cfg);
                // fixes http://jira.jboss.com/jira/browse/JGRP-290
                ConfiguratorFactory.substituteVariables(conf); // replace vars with system props
                String val=conf.getProtocolStackString();
                if(replace) {
                    stacks.put(st_name, val);
                    if(log.isTraceEnabled())
                        log.trace("added config '" + st_name + "'");
                }
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.