Examples of Listener


Examples of org.sonatype.sisu.resource.scanner.Listener

      final Repository repo = repoRegistry.getRepository(repoId);

      final File root = RepoHelp.repoRoot(repo);

      final Listener listener = new ListenerSupport() {

        @Override
        public void onBegin() {

          log.info("##########################################");
View Full Code Here

Examples of org.waveprotocol.wave.client.scheduler.Scheduler.Listener

    providedTimer = null;
    scheduler = new BrowserBackedScheduler(provider, Controller.NOOP);
    scheduler.setTimeSlice(10);
    tasks = new ArrayList<FakeTask>();
    executedJob = new ArrayList<Pair<Schedulable, Integer>>();
    scheduler.addListener(new Listener() {
      @Override
      public void onJobExecuted(Schedulable task, int timeSpent) {
        if (timeSpent > 100) {
          executedJob.add(new Pair<Schedulable, Integer>(task, timeSpent));
        }
View Full Code Here

Examples of org.waveprotocol.wave.client.wavepanel.view.AttachmentPopupView.Listener

            if (focusedRange != null) {
              tmpCursor = focusedRange.getFocus();
            }
            final int cursorLoc = tmpCursor;
            AttachmentPopupView attachmentView = new AttachmentPopupWidget();
            attachmentView.init(new Listener() {

              @Override
              public void onShow() {
              }
View Full Code Here

Examples of org.wildfly.clustering.provider.ServiceProviderRegistration.Listener

    @CacheEntryCreated
    @CacheEntryModified
    public void modified(CacheEntryEvent<ServiceName, Set<Node>> event) {
        if (event.isPre()) return;
        Listener listener = this.listeners.get(event.getKey());
        if (listener != null) {
            listener.providersChanged(event.getValue());
        }
    }
View Full Code Here

Examples of rinde.sim.event.Listener

      }
    });

    // checks whether the events contain the decorated instance
    final PDPModel modelRef = model;
    model.getEventAPI().addListener(new Listener() {
      @Override
      public void handleEvent(Event event) {
        assertSame(event.toString(), modelRef, event.getIssuer());
      }
    }, PDPModelEventType.values());
View Full Code Here

Examples of test.compliance.notification.support.Listener

   public void testAddNotificationListener()
      throws Exception
   {
      NotificationBroadcasterSupport broadcaster = new NotificationBroadcasterSupport();

      broadcaster.addNotificationListener(new Listener(), null, null);

      broadcaster.addNotificationListener(new Listener(), new NotificationFilterSupport(), null);

      broadcaster.addNotificationListener(new Listener(), null, new Object());

      broadcaster.addNotificationListener(new Listener(), new NotificationFilterSupport(), new Object());
   }
View Full Code Here

Examples of test.implementation.notification.support.Listener

   public void testAsynchDelivery()
      throws Exception
   {
      AsynchNotificationBroadcasterSupport broadcaster = new AsynchNotificationBroadcasterSupport();

      Listener listener = new Listener();
      broadcaster.addNotificationListener(listener, null, null);

      clear();
      createNotification(broadcaster);

      compare(EMPTY, received(listener, null));

      listener.doNotify(true);
      listener.doWait(false);

      compare(sent, received(listener, null));
   }
View Full Code Here

Examples of tests.jfun.yan.xml.nuts.Listener

  }
 
  public void test1()
  throws IOException{
    final ArrayList cache = new ArrayList();
    final Listener l = new Listener(){
      public void onInstance(Object obj){
        cache.add(obj);
      }
    };
    final NutsProcessor meta = interpreter.createMetaInterpreter();
View Full Code Here

Examples of webapp.ifaces.Listener

            Main.printPadding( level );
            System.out.println( "Listeners: " );
            System.out.println();
            for ( int i = 0; i < listeners.length; i++ )
            {
                final Listener l = listeners[ i ];
                Main.printPadding( level + 1 );
                System.out.println( "Listener class: " + l.getListenerClass() );
                System.out.println();
            }
        }
    }
View Full Code Here

Examples of workflowtracking.samples.util.Listener

        // subscribing to the above created messsage box with configured topic
        String subscriptionID = brokerClient.subscribe(msgBoxEpr.getAddress(), topic, null);


        //Start the messagePuller to pull messages from newly created messagebox
        MessagePuller puller = brokerClient.startPullingEventsFromMsgBox(msgBoxEpr, new Listener(), 1000L, 2000L);

        sender.workflowStarted("Workflow Started");
        //Here we simply assume the workflow invocation is the invoke of the subscribe operation of EventingService and result
        // Is considered as the subscriptionID got from subscribe operation
        String workflowResult = subscriptionID;
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.