Package javax.naming.event

Examples of javax.naming.event.NamingListener


        }

        @Override
        public void run() {
            for (ListenerHolder holder : listenerHolders) {
                final NamingListener listener = holder.listener;
                switch (event.getType()) {
                    case NamingEvent.OBJECT_ADDED:
                        if (listener instanceof NamespaceChangeListener)
                            ((NamespaceChangeListener) listener).objectAdded(event);
                        break;
View Full Code Here


        }

        @Override
        public void run() {
            for (ListenerHolder holder : listenerHolders) {
                final NamingListener listener = holder.listener;
                switch (event.getType()) {
                    case NamingEvent.OBJECT_ADDED:
                        if (listener instanceof NamespaceChangeListener)
                            ((NamespaceChangeListener) listener).objectAdded(event);
                        break;
View Full Code Here

            Filter filter, SearchControls controls,
            NamingListener namingListener) throws CommunicationException {

        SearchOp op = new SearchOp(targetDN, controls, filter);

        final NamingListener listener = namingListener;
        op.setSearchResult(new PersistentSearchResult() {

            @Override
            public void receiveNotificationHook(Object obj) {
                EventObject event = null;
View Full Code Here

        context = new LdapContextImpl(client, env, "cn=test");
        // remove not registered listener, do nothing
        context.removeNamingListener(new TestNamingListener());

        NamingListener listener = new TestNamingListener();

        context.addNamingListener("test=listener", EventContext.OBJECT_SCOPE,
                listener);
        context.removeNamingListener(listener);
View Full Code Here

        context = new LdapContextImpl(client, env, "cn=test");
        // remove not registered listener, do nothing
        context.removeNamingListener(new TestNamingListener());

        NamingListener listener = new TestNamingListener();

        context.addNamingListener("test=listener", EventContext.OBJECT_SCOPE,
                listener);
        context.removeNamingListener(listener);
View Full Code Here

        }

        @Override
        public void run() {
            for (ListenerHolder holder : listenerHolders) {
                final NamingListener listener = holder.listener;
                switch (event.getType()) {
                    case NamingEvent.OBJECT_ADDED:
                        if (listener instanceof NamespaceChangeListener)
                            ((NamespaceChangeListener) listener).objectAdded(event);
                        break;
View Full Code Here

        context = new LdapContextImpl(client, env, "cn=test");
        // remove not registered listener, do nothing
        context.removeNamingListener(new TestNamingListener());

        NamingListener listener = new TestNamingListener();

        context.addNamingListener("test=listener", EventContext.OBJECT_SCOPE,
                listener);
        context.removeNamingListener(listener);
View Full Code Here

            NamingListener namingListener) throws NamingException {
        applyEnvChange();

        SearchOp op = new SearchOp(targetDN, controls, filter);

        final NamingListener listener = namingListener;
        op.setSearchResult(new PersistentSearchResult() {

            @Override
            public void receiveNotificationHook(Object obj) {
                EventObject event = null;
View Full Code Here

            NamingListener namingListener) throws NamingException {
        applyEnvChange();

        SearchOp op = new SearchOp(targetDN, controls, filter);

        final NamingListener listener = namingListener;
        op.setSearchResult(new PersistentSearchResult() {

            @Override
            public void receiveNotificationHook(Object obj) {
                EventObject event = null;
View Full Code Here

TOP

Related Classes of javax.naming.event.NamingListener

Copyright © 2018 www.massapicom. 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.