Examples of removeListener()


Examples of org.apache.flex.forks.batik.dom.events.EventListenerList.removeListener()

        }
        EventListenerList list = (EventListenerList) listeners.get(type);
        if (list == null) {
            return;
        }
        list.removeListener(namespaceURI, listener);
        if (list.size() == 0) {
            listeners.remove(type);
        }
    }
View Full Code Here

Examples of org.apache.helix.HelixManager.removeListener()

  @Transition(to="STANDBY",from="LEADER")
  public void onBecomeStandbyFromLeader(Message message, NotificationContext context)
  {
    LOG.info("Become STANDBY from LEADER");
    HelixManager manager = context.getManager();
    manager.removeListener(_particHolder);   
  }

  @Transition(to="OFFLINE",from="STANDBY")
  public void onBecomeOfflineFromStandby(Message message, NotificationContext context)
  {
View Full Code Here

Examples of org.apache.helix.manager.zk.ZKHelixManager.removeListener()

      // OK
    }

    controller.addControllerListener(listener);
    AssertJUnit.assertTrue(listener.isControllerChangeListenerInvoked);
    controller.removeListener(listener);

    ZkHelixPropertyStore<ZNRecord> store = controller.getHelixPropertyStore();
    ZNRecord record = new ZNRecord("node_1");
    int options = 0;
    store.set("node_1", record, AccessOption.PERSISTENT);
View Full Code Here

Examples of org.apache.hivemind.util.EventListenerList.removeListener()

    public void removeThreadCleanupListener(ThreadCleanupListener listener)
    {
    EventListenerList list = (EventListenerList) _storage.get();

        if (list != null)
            list.removeListener(listener);
    }

    public void fireThreadCleanup()
    {
        // Here's where we need the CursorableLinkedList since listeners
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.state.ItemState.removeListener()

        }

        private void dispose() {
            ItemState state = internalGetItemState();
            if (state != null) {
                state.removeListener(this);
            }

            if (reorderedChildren != null) {
                // special handling of SNS-children  TODO: improve
                // since reordered sns-children are not marked modified (unless they
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.state.PropertyState.removeListener()

            if (cacheBehaviour == CacheBehaviour.OBSERVATION) {
                try {
                    if (lockHoldingState.hasPropertyName(NameConstants.JCR_LOCKISDEEP)) {
                        PropertyState ps = lockHoldingState.getPropertyState(NameConstants.JCR_LOCKISDEEP);
                        ps.removeListener(this);
                    }
                } catch (ItemNotFoundException e) {
                    log.debug("jcr:lockIsDeep doesn't exist any more.");
                } catch (Exception e) {
                    log.warn(e.getMessage());
View Full Code Here

Examples of org.apache.james.mailbox.MailboxManager.removeListener()

                        line = "";
                    }

                    if (idleListener != null) {
                        try {
                            mailboxManager.removeListener(sm.getPath(), idleListener, mailboxSession);
                        } catch (MailboxException e) {
                            if (session.getLog().isInfoEnabled()) {
                                session.getLog().info("Unable to remove idle listener from mailbox", e);
                            }
                        }
View Full Code Here

Examples of org.apache.karaf.eik.workbench.provider.RuntimeDataProvider.removeListener()

                return;
            }

            if (oldInput != null) {
                final RuntimeDataProvider oldRuntimeDataProvider = (RuntimeDataProvider) oldInput;
                oldRuntimeDataProvider.removeListener(this);
            }

            runtimeDataProvider = (RuntimeDataProvider) newInput;
            runtimeDataProvider.addListener(this);
        }
View Full Code Here

Examples of org.apache.logging.log4j.core.config.Configuration.removeListener()

        config.addComponent(Configuration.CONTEXT_PROPERTIES, map);
        config.start();
        this.config = config;
        updateLoggers();
        if (prev != null) {
            prev.removeListener(this);
            prev.stop();
        }

        // notify listeners
        PropertyChangeEvent evt = new PropertyChangeEvent(this, PROPERTY_CONFIG, prev, config);
View Full Code Here

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

      IoFutureListener<CloseFuture> listener = new IoFutureListener<CloseFuture>() {
        @SuppressWarnings({ "unchecked", "rawtypes" })
        public void operationComplete(CloseFuture future) {
          // now connection should be closed
          log.debug("Close operation completed {}: {}", sessionId, future.isClosed());
          future.removeListener(this);
          for (Object key : session.getAttributeKeys()) {
            Object obj = session.getAttribute(key);
            log.debug("Attribute: {}", obj.getClass().getName());
            if (obj instanceof IoProcessor) {
              log.debug("Flushing session in processor");
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.