Examples of addListener()


Examples of org.cometd.server.BayeuxServerImpl.addListener()

                    bayeux.addExtension(extension);
                }
            }
            if (serverListeners != null) {
                for (BayeuxServer.BayeuxServerListener serverListener : serverListeners) {
                    bayeux.addListener(serverListener);
                }
            }
            prodcon.setBayeux(bayeux);
        }
    }
View Full Code Here

Examples of org.cspoker.external.pokersource.PokersourceConnection.addListener()

            }
          }
        }

      };
      conn.addListener(listener);

      conn.send(new Login("foobar", "foobar")).await();
      conn.send(new TablePicker(serial, true)).await();
      conn.startPolling(game_id);
      conn.send(new SitOut(serial, game_id));
View Full Code Here

Examples of org.datanucleus.metadata.AbstractClassMetaData.addListener()

                    AbstractClassMetaData cmd = (AbstractClassMetaData)md;
                    EventListenerMetaData elmd = cmd.getListenerForClass(cmd.getFullClassName());
                    if (elmd == null)
                    {
                        elmd = new EventListenerMetaData(cmd.getFullClassName());
                        cmd.addListener(elmd);
                    }
                    elmd.addCallback("javax.persistence.PrePersist", getAttr(attrs, "method-name"));
                }
                else
                {
View Full Code Here

Examples of org.datanucleus.metadata.ClassMetaData.addListener()

                    AbstractClassMetaData cmd = (AbstractClassMetaData)md;
                    EventListenerMetaData elmd = cmd.getListenerForClass(cmd.getFullClassName());
                    if (elmd == null)
                    {
                        elmd = new EventListenerMetaData(cmd.getFullClassName());
                        cmd.addListener(elmd);
                    }
                    elmd.addCallback("javax.persistence.PrePersist", getAttr(attrs, "method-name"));
                }
                else
                {
View Full Code Here

Examples of org.datanucleus.store.connection.ManagedConnection.addListener()

          public void transactionPreClose() {
            // Disconnect the query from this ManagedConnection (read in unread rows etc)
            qr.disconnect();
          }
        };
        mconn.addListener(listener);
        qr.addConnectionListener(listener);
      }
      return results;
    } finally {
      mconn.release();
View Full Code Here

Examples of org.drools.planner.benchmark.statistic.SolverStatistic.addListener()

                    SolverStatistic statistic = unsolvedSolutionFileToStatisticMap.get(unsolvedSolutionFile);
                    if (statistic == null) {
                        statistic = solverStatisticType.create();
                        unsolvedSolutionFileToStatisticMap.put(unsolvedSolutionFile, statistic);
                    }
                    statistic.addListener(solver, solverBenchmark.getName());
                }
                solver.solve();
                result.setTimeMillisSpend(solver.getTimeMillisSpend());
                Solution solvedSolution = solver.getBestSolution();
                result.setScore(solvedSolution.getScore());
View Full Code Here

Examples of org.earth3d.jearth.draw.tree.GeometryMapTree.addListener()

    assertTrue(service.getGeometry() != null);
    assertEquals("sphere", ((GeometryMapTree) service.getGeometry()).getBase());
   
    // then download the first texture map tile and heightfield map tile
    GeometryMapTree geometry = (GeometryMapTree) service.getGeometry();
    geometry.addListener(new DownloadFinishedListener() {
     
      public void downloadFinished(DownloadFinishedData dfd) {
        synchronized(sl) {
          sl.notifyAll();
        }
View Full Code Here

Examples of org.earth3d.jearth.model.Service.addListener()

    assertTrue(downloadedServices>0);

    // now choose the first service for download
    Service service = serviceList.getServices().get(0);
    service.addListener(new DownloadFinishedListener() {
     
      public void downloadFinished(DownloadFinishedData dfd) {
        synchronized(sl) {
          sl.notifyAll();
        }
View Full Code Here

Examples of org.eclipse.debug.core.model.IStreamMonitor.addListener()

            return;
        }
        final IStreamsProxy proxy = getStreamsProxy();
        if (proxy != null) {
            final IStreamMonitor errorStreamMonitor = proxy.getErrorStreamMonitor();
            errorStreamMonitor.addListener(this);
            final IStreamMonitor outputStreamMonitor = proxy.getOutputStreamMonitor();
            outputStreamMonitor.addListener(this);
        }
    }
View Full Code Here

Examples of org.eclipse.debug.ui.IDebugModelPresentation.addListener()

                }

                @Override
                public void addListener(
                    ILabelProviderListener listener) {
                  labelProvider.addListener(listener);
                }

                @Override
                public void removeListener(
                    ILabelProviderListener listener) {
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.