Examples of Configurator


Examples of org.jresearch.gossip.configuration.Configurator

    }

    private String process(String result, boolean skipSmiles)
        throws ConfiguratorException {
        MessageProcessor mp = MessageProcessor.getInstance();
        Configurator conf = Configurator.getInstance();
        result = mp.prepareMessage(result, this.cutToLength,
                (MessageResources) pageContext.getServletContext().getAttribute(Globals.MESSAGES_KEY +
                    conf.get(IConst.CONFIG.MODULE_PREFIX)));

        if ((cutToLength == 0) && !skipSmiles) {
            result = mp.processEmoticons(result,
                    (MessageResources) pageContext.getServletContext()
                                                  .getAttribute(Globals.MESSAGES_KEY +
                        conf.get(IConst.CONFIG.MODULE_PREFIX)));
        }else if(skipSmiles){
            result=mp.cleanup(result);
        }

        return result;
View Full Code Here

Examples of org.jresearch.gossip.configuration.Configurator

        }
        //Setting up MessageProcessor
        MessageProcessor.setEmoticonsMap(ResourceBundle
                .getBundle("org/jresearch/gossip/resources/emoticon"));
        //Load configuration parameters
        Configurator conf = Configurator.getInstance();
        conf.setDataSource(ds);
        try {
            conf.load(app);
        } catch (SQLException e) {
            if (log.isErrorEnabled()) {
                log.error("jGossip Configurator is not loaded");
            }
            throw new ServletException(e);
View Full Code Here

Examples of org.neo4j.server.configuration.Configurator

        webServer = startWebServer(serverGraphDatabase, PORT);
    }

    public static NeoServer startWebServer(
      ImpermanentGraphDatabase gdb, int port) {
      Configurator configurator = new ServerConfigurator(gdb);
      configurator.configuration().setProperty(Configurator.WEBSERVER_PORT_PROPERTY_KEY,  port);
    NeoServer server = new WrappingNeoServer(gdb, configurator );
    server.start();
        tryConnect();
    return server;
  }
View Full Code Here

Examples of org.nm.ntutimetabletoics.helpers.Configurator

    /**
     * Test of saveICals method, of class NTUTimetable.
     */
    public void testSaveICals() {
        System.out.println("saveICals");
        Configurator c = new Configurator();
        NTUTimetable instance = c.doConfigure("/home/nmutiara/NetBeansProjects/ntutimetabletoics/examples/conf.xml");
        instance.saveICals();
        //assertEquals(true, new File("/home/nmutiara/NetBeansProjects/ntutimetabletoics/examples/reg-timetable/export").exists());
    }
View Full Code Here

Examples of org.objectweb.celtix.configuration.Configurator

    }
   
    public void testConfigurators() {
        AbstractConfigurationImpl topConfiguration =
            (AbstractConfigurationImpl)new TopConfigurationBuilder().build("TOP");
        Configurator topConfigurator = topConfiguration.getConfigurator();
        assertNotNull(topConfigurator);
        assertTrue(topConfiguration == topConfigurator.getConfiguration());
        assertNull(topConfigurator.getHook());
        Collection<Configurator> topClients = topConfigurator.getClients();
        assertEquals(0, topClients.size());   
       
        AbstractConfigurationImpl leafConfiguration =
            (AbstractConfigurationImpl)new LeafConfigurationBuilder().build(topConfiguration, "LEAF");
        assertEquals(1, topClients.size());  
        Configurator leafConfigurator = leafConfiguration.getConfigurator();
        assertNotNull(leafConfigurator);
        assertTrue(leafConfiguration == leafConfigurator.getConfiguration());
        Configurator hook = leafConfigurator.getHook();
        assertNotNull(hook);
        assertTrue(hook == topConfigurator);
        Collection<Configurator> leafClients = leafConfigurator.getClients();
        assertEquals(0, leafClients.size());  
       
View Full Code Here

Examples of tigase.conf.Configurator

      + "java.util.logging.ConsoleHandler.level=ALL\n"
      + "java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter\n"
      ;
    Configurator.loadLogManagerConfig(initial_config);

    Configurator config = null;
    try {
      config = new Configurator(config_file, args);
    } catch (XMLDBException e) {
      System.err.println("");
      System.err.println("  --------------------------------------");
      System.err.println("  ERROR! Terminating the server process.");
      System.err.println("  Invalid XML configuration file: " + config_file);
      System.err.println("  Please fix the problem and start the server again.");
      System.exit(1);
    }
    config.setName("basic-conf");
    MessageRouter router = new MessageRouter();
    router.setName(server_name);
    router.setConfig(config);

    router.start();
View Full Code Here

Examples of us.jyg.freshet.engine.Configurator

    try {
         Class.forName("org.hsqldb.jdbcDriver").newInstance();
      Connection c = DriverManager.getConnection("jdbc:hsqldb:/tmp/db/freshet", "sa", "");
      c.createStatement().execute("SHUTDOWN COMPACT");
     
      Configurator cr = Configurator.getInstance();
      if (cr != null) cr.shutdown();
    } catch (SQLException sqlE) {
      log.debug(sqlE.getMessage(), sqlE);
    } catch (Exception e) {
      log.debug(e.getMessage(), e);
      }
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.