Examples of removeListener()


Examples of org.apache.mina.core.future.DefaultCloseFuture.removeListener()

        TestListener listener1 = new TestListener();
        TestListener listener2 = new TestListener();
        future.addListener(listener1);
        future.addListener(listener2);
        future.removeListener(listener1);

        TestThread thread = new TestThread(future);
        thread.start();

        future.setClosed();
View Full Code Here

Examples of org.apache.ojb.broker.core.proxy.CollectionProxy.removeListener()

                if(status == IS_UNMATERIALIZED_PROXY)
                {
                    CollectionProxy colProxy = ProxyHelper.getCollectionProxy(collectionOrArray);
                    if(colProxy != null)
                    {
                        colProxy.removeListener(this);
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl.removeListener()

        {
            for (Iterator it = _colProxyListeners.keySet().iterator(); it.hasNext();)
            {
                CollectionProxyListener listener = (CollectionProxyListener) it.next();
                CollectionProxyDefaultImpl colProxy = (CollectionProxyDefaultImpl) _colProxyListeners.get(listener);
                colProxy.removeListener(listener);
            }
            _colProxyListeners.clear();
        }
    }
View Full Code Here

Examples of org.apache.openjpa.event.LifecycleEventManager.removeListener()

        assertEquals(0, listener.store);
        assertEquals(0, listener.preStore);
        assertEquals(1, listener2.load);
        assertEquals(0, listener2.store);

        mgr.removeListener(listener2);
        assertTrue(mgr.hasLoadListeners(pc, meta));
        assertTrue(mgr.hasStoreListeners(pc, meta));
        assertFalse(mgr.hasDirtyListeners(pc, meta));

        mgr.fireEvent(pc, meta, LifecycleEvent.AFTER_LOAD);
View Full Code Here

Examples of org.apache.tapestry5.MarkupWriter.removeListener()

        w.write("n-w-l text");
        w.end();
        w.write("after n-w-l");
        w.end();

        w.removeListener(l);

        w.write("after listener");

        w.end();
        w.end();
View Full Code Here

Examples of org.atmosphere.cpr.Meteor.removeListener()

        // If we are using long-polling, resume the connection as soon as we get an event.
        String transport = event.getResource().getRequest().getHeader("X-Atmosphere-Transport");
        if (transport != null && transport.equalsIgnoreCase("long-polling")) {
            Meteor meteor = Meteor.lookup(event.getResource().getRequest());

            meteor.removeListener(this);
            meteor.resume();
        }
    }

    public void onSuspend(AtmosphereResourceEvent<HttpServletRequest, HttpServletResponse> event) {
View Full Code Here

Examples of org.cipango.kaleo.presence.policy.Policy.removeListener()

  @Override
  protected void removeResource(Presentity presentity)
  {
    super.removeResource(presentity);
    Policy policy = _policyManager.getPolicy(presentity);
    policy.removeListener(_policyListener);
  }
 
  public List<String> getSupportedContentTypes()
  {
    return Collections.singletonList(PIDF);
View Full Code Here

Examples of org.cometd.bayeux.client.ClientSessionChannel.removeListener()

        channel.addListener(listener);
        boolean released = channel.release();

        Assert.assertFalse(released);

        channel.removeListener(listener);
        Assert.assertTrue(channel.getListeners().isEmpty());
        released = channel.release();

        Assert.assertTrue(released);
View Full Code Here

Examples of org.cometd.bayeux.server.ServerChannel.removeListener()

    {
        oort.deobserveChannel(broadcastChannelName);
        BayeuxServer bayeuxServer = oort.getBayeuxServer();
        ServerChannel channel = bayeuxServer.getChannel(resultChannelName);
        if (channel != null)
            channel.removeListener(this);
        channel = bayeuxServer.getChannel(broadcastChannelName);
        if (channel != null)
            channel.removeListener(this);
        channel = bayeuxServer.getChannel(forwardChannelName);
        if (channel != null)
View Full Code Here

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

                result.setTimeMillisSpend(solver.getTimeMillisSpend());
                Solution solvedSolution = solver.getBestSolution();
                result.setScore(solvedSolution.getScore());
                if (solverStatisticType != SolverStatisticType.NONE) {
                    SolverStatistic statistic = unsolvedSolutionFileToStatisticMap.get(unsolvedSolutionFile);
                    statistic.removeListener(solver, solverBenchmark.getName());
                }
                writeSolvedSolution(xStream, solverBenchmark, result, solvedSolution);
            }
        }
        benchmarkingEnded(xStream, unsolvedSolutionFileToStatisticMap);
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.