Examples of addHandler()


Examples of org.objectweb.util.monolog.api.TopicalLogger.addHandler()

    Handler h1 = mf.createHandler("h1", "console");
    h1.setAttribute(Handler.OUTPUT_ATTRIBUTE, "System.out");
    h1.setAttribute(Handler.LEVEL_ATTRIBUTE, "WARN");
    h1.setAttribute(Handler.PATTERN_ATTRIBUTE, "first handler: %m");
    h1.setAttribute("activation",mf);
    l.addHandler(h1);

    Handler h2 = mf.createHandler("h2", "console");
    h2.setAttribute(Handler.OUTPUT_ATTRIBUTE, "System.out");
    h2.setAttribute(Handler.PATTERN_ATTRIBUTE, "second handler: %m");
    h2.setAttribute("activation",mf);
View Full Code Here

Examples of org.openmrs.module.htmlformentry.HtmlFormEntryService.addHandler()

  if (ModuleFactory.isModuleStarted("htmlformentry")) {
      try {
       
        HtmlFormEntryService hfes = Context.getService(HtmlFormEntryService.class);
       
        hfes.addHandler("drawing", new DrawingTagHandler());
       
        log.info("drawing : drawing tag registered");
      }
      catch (Exception ex) {
        log.error("failed to register drawing tag in drawing", ex);
View Full Code Here

Examples of org.openqa.jetty.http.HttpContext.addHandler()

        Server server = new Server();
        HttpContext httpContext = new HttpContext();
        httpContext.setContextPath("/");
        ProxyHandler proxy = new ProxyHandler(true, "", "", false, false);
        proxy.useCyberVillains = false;
        httpContext.addHandler(proxy);
        server.addContext(httpContext);
        SocketListener listener = new SocketListener();
        listener.setPort(4444);
        server.addListener(listener);
        server.start();
View Full Code Here

Examples of org.rstudio.studio.client.application.events.EventBus.addHandler()

   // rather they should override the abstract onInitialize method)
   public void show(JavaScriptObject params)
   {
      // react to font size changes
      EventBus eventBus = pEventBus_.get();
      eventBus.addHandler(ChangeFontSizeEvent.TYPE, new ChangeFontSizeHandler()
      {
         public void onChangeFontSize(ChangeFontSizeEvent event)
         {
            FontSizer.setNormalFontSize(Document.get(), event.getFontSize());
         }
View Full Code Here

Examples of org.rzo.yajsw.log.MyLogger.addHandler()

      result = wm;
      String preScript = System.getProperty("wrapper.app.pre_main.script");
      if (preScript != null & !"".equals(preScript))
      {
        Logger logger = new MyLogger();
        logger.addHandler(new ConsoleHandler());
        wm.executeScript(preScript, wrapperClassLoader);
      }

    }
    catch (Exception e1)
View Full Code Here

Examples of org.rzo.yajsw.log.MyLogger.addHandler()

    String preScript = System.getProperty("wrapper.app.pre.script");
    if (preScript != null & !"".equals(preScript))
      try
      {
        Logger logger = new MyLogger();
        logger.addHandler(new ConsoleHandler());
        System.out.println("wrapped process: executing pre script " + preScript);
        Script script = ScriptFactory.createScript(preScript, "", null, new String[0], null, 0);
        if (script != null)
          script.execute();
        else
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.ui.popup.Popup.addHandler()

            @Override
            public void onMouseOut(MouseOutEvent event) {
                highlightingManager.setHighlighting(false);
            }
        }, MouseOutEvent.getType());
        popup.addHandler(new PopupOpacityChangedEventHandler() {
            @Override
            public void onOpacityChangeStarted(PopupOpacityChangedEvent event) {
                if (event.getOpacity() == Opacity.TRANSPARENT) {
                    highlightingManager.setHighlighting(false);
                }
View Full Code Here

Examples of org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.addHandler()

        handler.setMountPoint(path);
        handler.setTargetPoint(target);
        handler.setAuthor(author);

        HandlerManager hm = context.getHandlerManager();
        hm.addHandler(RegistryUtils.getMountingMethods(),
                RegistryUtils.getMountingMatcher(path), handler,
                HandlerLifecycleManager.TENANT_SPECIFIC_SYSTEM_HANDLER_PHASE);
        // now we are going to iterate through all the already available symbolic links and resolve
        // the cyclic symbolic links
View Full Code Here

Examples of xsul.xservo.XService.addHandler()

        String wsdlLocation = XBayaPathConstants.WSDL_DIRECTORY
                + File.separator + wsdlPath;
        XService xservice = this.httpServices
                .addService(new XSoapDocLiteralService(serviceName,
                        wsdlLocation, serviceImpl));
        xservice.addHandler(new StickySoapHeaderHandler("retrieve-lead-header",
                LeadContextHeader.TYPE));
        xservice.startService();

        WsdlDefinitions wsdl = xservice.getWsdl();
View Full Code Here

Examples of xsul.xwsif_runtime.WSIFClient.addHandler()

        WSIFClient wclient = WSIFRuntime.getDefault().newClientFor(
                definitions3, "TestCMD_Example1SoapPort");
        StickySoapHeaderHandler handler = new StickySoapHeaderHandler(
                "use-lead-header", leadContext);

        wclient.addHandler(handler);
        wclient.useAsyncMessaging(correlator);
        wclient.setAsyncResponseTimeoutInMs(33000L);

        WSIFPort port = wclient.getPort();
        WSIFOperation operation = port.createOperation("Run");
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.