Examples of addListener()


Examples of org.apache.directory.studio.schemaeditor.model.schemachecker.SchemaChecker.addListener()

    private void addSchemaCheckerListener( Project project )
    {
        SchemaChecker schemaChecker = project.getSchemaChecker();
        if ( schemaChecker != null )
        {
            schemaChecker.addListener( schemaCheckerListener );
            schemaChecker.enableModificationsListening();
        }
    }

View Full Code Here

Examples of org.apache.felix.ipojo.handlers.configuration.ConfigurationHandlerDescription.addListener()

    @Override
    public void open(DependencyModel dependency) {
        super.open(dependency);
        ConfigurationHandlerDescription handler = (ConfigurationHandlerDescription) dependency.getComponentInstance().getInstanceDescription()
                .getHandlerDescription("org.apache.felix.ipojo:properties");
        handler.addListener(this);
    }

    @Override
    public List<ServiceReference> getServiceReferences(DependencyModel dependency, List<ServiceReference> matching) {
       List<ServiceReference> list = new ArrayList<ServiceReference>();
View Full Code Here

Examples of org.apache.felix.ipojo.handlers.providedservice.ProvidedServiceDescription.addListener()

        // 1- CountingListener l1
        // 2- ThrowingListener bad
        // 3- TotalCountingListener l2
        // 4- AppendingListener l3
        ProvidedServiceListener l1 = new CountingListener();
        ps.addListener(l1);
        ProvidedServiceListener bad = new ThrowingListener();
        ps.addListener(bad);
        ProvidedServiceListener l2 = new TotalCountingListener();
        ps.addListener(l2);
        ProvidedServiceListener l3 = new AppendingListener();
View Full Code Here

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

        EventListenerList list = (EventListenerList) listeners.get(type);
        if (list == null) {
            list = new EventListenerList();
            listeners.put(type, list);
        }
        list.addListener(namespaceURI, null, listener);
    }

    /**
     * Unregisters an implementation event listener.
     */
 
View Full Code Here

Examples of org.apache.ftpserver.FtpServerFactory.addListener()

        // set the SSL configuration for the listener
        factory.setSslConfiguration(ssl.createSslConfiguration());
        factory.setImplicitSsl(true);

        // replace the default listener
        serverFactory.addListener("default", factory.createListener());
       
        PropertiesUserManagerFactory userManagerFactory = new PropertiesUserManagerFactory();
        userManagerFactory.setFile(new File("myusers.properties"));
       
        serverFactory.setUserManager(userManagerFactory.createUserManager());
View Full Code Here

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

        {
            list = new EventListenerList();
            _storage.set(list);
        }

        list.addListener(listener);
    }

    public void removeThreadCleanupListener(ThreadCleanupListener listener)
    {
    EventListenerList list = (EventListenerList) _storage.get();
View Full Code Here

Examples of org.apache.jackrabbit.core.SessionImpl.addListener()

            }

            // create lock token
            info.setLockHolder(session);
            info.setLive(true);
            session.addListener(info);
            if (!info.isSessionScoped()) {
                getSessionLockManager(session).lockTokenAdded(info.lockToken.toString());
            }
            lockMap.put(path, info);
View Full Code Here

Examples of org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.addListener()

        NodeTypeRegistry ntRegistry = repositoryContext.getNodeTypeRegistry();
        propRegistry = new PropertyTypeRegistry(ntRegistry);
        this.parentHandler = parentHandler;
        this.excludedNodeId = excludedNodeId;
        this.executor =  executor;
        ntRegistry.addListener(propRegistry);
    }

    /**
     * Returns the persistent {@link ItemStateManager}
     * of the workspace this <code>QueryHandler</code> is based on.
View Full Code Here

Examples of org.apache.jackrabbit.core.state.ItemState.addListener()

                     * persistent state, therefore restore the
                     * persistent state and resurrect this item instance
                     * if necessary
                     */
                    state.removeListener(this);
                    persistentState.addListener(this);
                    stateMgr.disconnectTransientItemState(state);
                    state = persistentState;
                    state.addListener(this);

                    return;
View Full Code Here

Examples of org.apache.jackrabbit.core.state.NodeState.addListener()

                NodeState transientState =
                        stateMgr.createTransientNodeState((NodeState) state, ItemState.STATUS_EXISTING_MODIFIED);
                // remove listener on persistent state
                state.removeListener(this);
                // add listener on transient state
                transientState.addListener(this);
                // replace persistent with transient state
                state = transientState;
            } catch (ItemStateException ise) {
                String msg = "failed to create transient state";
                log.debug(msg);
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.