Examples of addHandler()


Examples of asia.stampy.server.netty.ServerNettyMessageGateway.addHandler()

    ServerNettyMessageGateway gateway = new ServerNettyMessageGateway();
    gateway.setPort(1234);
    gateway.setHeartbeat(1000);
    gateway.setAutoShutdown(true);
    gateway.addHandler(new SimpleChannelUpstreamHandler() {
      public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        System.out.println("Session destroyed, exiting...");
        System.exit(0);
      }
    });
View Full Code Here

Examples of com.caucho.env.warning.WarningService.addHandler()

     
      WarningService warning = WarningService.getCurrent();

      if (_pingSocket != null) {
        _resinActor = new ResinActor(_resin);
        warning.addHandler(new ResinWarningHandler(_resinActor));

        InputStream is = _pingSocket.getInputStream();
        OutputStream os = _pingSocket.getOutputStream();

        ResinLink link = new ResinLink(_resinActor, is, os);
View Full Code Here

Examples of com.cloudbees.groovy.cps.impl.TryBlockEnv.addHandler()

        if (currentThread.getExecution().isSandbox())
            caller.setInvoker(new SandboxInvoker());

        // catch an exception thrown from body and treat that as a failure
        TryBlockEnv env = new TryBlockEnv(caller, null);
        env.addHandler(Throwable.class, new FailureAdapter(bodyExecution,sn));

        return new Continuable(
            // this source location is a place holder for the step implementation.
            // perhaps at some point in the future we'll let the Step implementation control this.
            inv.invoke(env, SourceLocation.UNKNOWN, new SuccessAdapter(bodyExecution,sn)));
View Full Code Here

Examples of com.cloudera.util.dirwatcher.DirWatcher.addHandler()

  private DirWatcher createWatcher(File dir, final String regex,
      final int recurseDepth) {
    // 250 ms between checks
    DirWatcher watcher = new DirWatcher(dir, new RegexFileFilter(regex), 250);
    watcher.addHandler(new DirChangeHandler() {
      Map<String, Cursor> curmap = new HashMap<String, Cursor>();

      @Override
      public void fileCreated(File f) {
        if (f.isDirectory()) {
View Full Code Here

Examples of com.elastisys.scale.commons.rest.server.JaxRsApplication.addHandler()

  public static Server createServer(CloudAdapter cloudAdapter,
      CloudAdapterOptions options) throws Exception {

    JaxRsApplication application = new JaxRsApplication();
    // deploy pool handler
    application.addHandler(new PoolHandler(cloudAdapter));

    if (options.enableConfigHandler) {
      // optionally deploy config handler and config schema handler
      application.addHandler(new ConfigHandler(cloudAdapter));
      application.addHandler(new ConfigSchemaHandler(cloudAdapter));
View Full Code Here

Examples of com.flaptor.util.remote.XmlrpcServer.addHandler()

                return;
            }

            indexer = new Indexer();
            XmlrpcServer indexerServer = new XmlrpcServer(indexerPort);
            indexerServer.addHandler("indexer", indexer);
           
            searcher = new CompositeSearcher();
            XmlrpcServer searcherServer = new XmlrpcServer(searcherPort);
            searcherServer.addHandler("searcher", searcher);
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Icon.addHandler()

        Icon leftPageIcon = new Icon(IconType.ANGLE_LEFT);
        leftPageIcon.setIconSize(IconSize.LARGE);
        leftPageIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
        leftPageIcon.sinkEvents(Event.ONCLICK);
        leftPageIcon.addHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                gotoPage(currentPage - 1);
            }
        }, ClickEvent.getType());
View Full Code Here

Examples of com.google.gwt.event.shared.EventBus.addHandler()

        Resource resource = new Resource(GWT.getModuleBaseURL());
        final ModelChangeAnnotatedService service = GWT.create(ModelChangeAnnotatedService.class);
        ((RestServiceProxy) service).setResource(resource);

        final ModelChangedEventHandlerImpl handler = new ModelChangedEventHandlerImpl();
        eventBus.addHandler(ModelChangeEvent.TYPE, handler);


        /*
         * first we create a client GET request to prepare all things as it
         * would be when displaying a list of items in the client.
View Full Code Here

Examples of com.google.gwt.event.shared.SimpleEventBus.addHandler()

        Resource resource = new Resource(GWT.getModuleBaseURL());
        final ModelChangeAnnotatedService service = GWT.create(ModelChangeAnnotatedService.class);
        ((RestServiceProxy) service).setResource(resource);

        final ModelChangedEventHandlerImpl handler = new ModelChangedEventHandlerImpl();
        eventBus.addHandler(ModelChangeEvent.TYPE, handler);


        /*
         * first we create a client GET request to prepare all things as it
         * would be when displaying a list of items in the client.
View Full Code Here

Examples of com.google.gwt.user.client.ui.CheckBox.addHandler()

                    op = new RadioButton(paintableId);
                    op.setStyleName("v-radiobutton");
                }
                if (iconUrl != null && iconUrl.length() != 0) {
                    Util.sinkOnloadForImages(op.getElement());
                    op.addHandler(iconLoadHandler, LoadEvent.getType());
                }

                op.addStyleName(CLASSNAME_OPTION);
                op.addClickHandler(this);
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.