javax.naming.event.NamingListener Java Examples

The following examples show how to use javax.naming.event.NamingListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CarbonContextDataHolder.java    From micro-integrator with Apache License 2.0 5 votes vote down vote up
public void addNamingListener(Name name, String filter, Object[] objects,
                              SearchControls searchControls, NamingListener namingListener)
        throws NamingException {
    MicroIntegratorBaseUtils.checkSecurity();
    getEventDirContext(name).addNamingListener(name, filter, objects, searchControls,
                                               namingListener);
}
 
Example #2
Source File: CarbonContextDataHolder.java    From micro-integrator with Apache License 2.0 5 votes vote down vote up
public void addNamingListener(String s, String filter, Object[] objects,
                              SearchControls searchControls, NamingListener namingListener)
        throws NamingException {
    MicroIntegratorBaseUtils.checkSecurity();
    getEventDirContext(s).addNamingListener(s, filter, objects, searchControls,
                                            namingListener);
}
 
Example #3
Source File: CarbonContextDataHolder.java    From micro-integrator with Apache License 2.0 4 votes vote down vote up
public void addNamingListener(String s, int i, NamingListener namingListener)
        throws NamingException {
    MicroIntegratorBaseUtils.checkSecurity();
    getEventContext(s).addNamingListener(s, i, namingListener);
}
 
Example #4
Source File: EventQueue.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
Example #5
Source File: EventQueue.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
Example #6
Source File: RemoveNamingListenerTest.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
RemoveNamingListener(EventContext ctx, NamingListener listener) {
    this.ctx = ctx;
    this.listener = listener;
}
 
Example #7
Source File: EventQueue.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
Example #8
Source File: EventQueue.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
Example #9
Source File: EventQueue.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
Example #10
Source File: EventQueue.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
Example #11
Source File: EventQueue.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
Example #12
Source File: EventQueue.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
Example #13
Source File: EventQueue.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
Example #14
Source File: RemoveNamingListenerTest.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
RemoveNamingListener(EventContext ctx, NamingListener listener) {
    this.ctx = ctx;
    this.listener = listener;
}
 
Example #15
Source File: EventQueue.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
Example #16
Source File: EventQueue.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
Example #17
Source File: RemoveNamingListenerTest.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
RemoveNamingListener(EventContext ctx, NamingListener listener) {
    this.ctx = ctx;
    this.listener = listener;
}
 
Example #18
Source File: CarbonContextDataHolder.java    From micro-integrator with Apache License 2.0 4 votes vote down vote up
public void addNamingListener(Name name, int i, NamingListener namingListener)
        throws NamingException {
    MicroIntegratorBaseUtils.checkSecurity();
    getEventContext(name).addNamingListener(name, i, namingListener);
}
 
Example #19
Source File: CarbonContextDataHolder.java    From micro-integrator with Apache License 2.0 4 votes vote down vote up
public void removeNamingListener(NamingListener namingListener) throws NamingException {
    MicroIntegratorBaseUtils.checkSecurity();
    getEventContext().removeNamingListener(namingListener);
}
 
Example #20
Source File: EventQueue.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
Example #21
Source File: CarbonContextDataHolder.java    From micro-integrator with Apache License 2.0 4 votes vote down vote up
public void addNamingListener(Name name, String filter, SearchControls searchControls,
                              NamingListener namingListener) throws NamingException {
    MicroIntegratorBaseUtils.checkSecurity();
    getEventDirContext(name)
            .addNamingListener(name, filter, searchControls, namingListener);
}
 
Example #22
Source File: RemoveNamingListenerTest.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
RemoveNamingListener(EventContext ctx, NamingListener listener) {
    this.ctx = ctx;
    this.listener = listener;
}
 
Example #23
Source File: CarbonContextDataHolder.java    From micro-integrator with Apache License 2.0 4 votes vote down vote up
public void addNamingListener(String s, String filter, SearchControls searchControls,
                              NamingListener namingListener) throws NamingException {
    MicroIntegratorBaseUtils.checkSecurity();
    getEventDirContext(s).addNamingListener(s, filter, searchControls, namingListener);
}
 
Example #24
Source File: EventQueue.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
Example #25
Source File: EventQueue.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Enqueue an event.
 * @param event Either a <tt>NamingExceptionEvent</tt> or a subclass
 *              of <tt>NamingEvent</tt> or
 * <tt>UnsolicitedNotificatoniEvent</tt>.
 * If it is a subclass of <tt>NamingEvent</tt>, all listeners must implement
 * the corresponding subinterface of <tt>NamingListener</tt>.
 * For example, for a <tt>ObjectAddedEvent</tt>, all listeners <em>must</em>
 * implement the <tt>ObjectAddedListener</tt> interface.
 * <em>The current implementation does not check this before dispatching
 * the event.</em>
 * If the event is a <tt>NamingExceptionEvent</tt>, then all listeners
 * are notified.
 * @param vector List of NamingListeners that will be notified of event.
 */
synchronized void enqueue(EventObject event, Vector<NamingListener> vector) {
    QueueElement newElt = new QueueElement(event, vector);

    if (head == null) {
        head = newElt;
        tail = newElt;
    } else {
        newElt.next = head;
        head.prev = newElt;
        head = newElt;
    }
    notify();
}
 
Example #26
Source File: EventQueue.java    From jdk8u-dev-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Enqueue an event.
 * @param event Either a <tt>NamingExceptionEvent</tt> or a subclass
 *              of <tt>NamingEvent</tt> or
 * <tt>UnsolicitedNotificatoniEvent</tt>.
 * If it is a subclass of <tt>NamingEvent</tt>, all listeners must implement
 * the corresponding subinterface of <tt>NamingListener</tt>.
 * For example, for a <tt>ObjectAddedEvent</tt>, all listeners <em>must</em>
 * implement the <tt>ObjectAddedListener</tt> interface.
 * <em>The current implementation does not check this before dispatching
 * the event.</em>
 * If the event is a <tt>NamingExceptionEvent</tt>, then all listeners
 * are notified.
 * @param vector List of NamingListeners that will be notified of event.
 */
synchronized void enqueue(EventObject event, Vector<NamingListener> vector) {
    QueueElement newElt = new QueueElement(event, vector);

    if (head == null) {
        head = newElt;
        tail = newElt;
    } else {
        newElt.next = head;
        head.prev = newElt;
        head = newElt;
    }
    notify();
}
 
Example #27
Source File: EventQueue.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Enqueue an event.
 * @param event Either a <tt>NamingExceptionEvent</tt> or a subclass
 *              of <tt>NamingEvent</tt> or
 * <tt>UnsolicitedNotificatoniEvent</tt>.
 * If it is a subclass of <tt>NamingEvent</tt>, all listeners must implement
 * the corresponding subinterface of <tt>NamingListener</tt>.
 * For example, for a <tt>ObjectAddedEvent</tt>, all listeners <em>must</em>
 * implement the <tt>ObjectAddedListener</tt> interface.
 * <em>The current implementation does not check this before dispatching
 * the event.</em>
 * If the event is a <tt>NamingExceptionEvent</tt>, then all listeners
 * are notified.
 * @param vector List of NamingListeners that will be notified of event.
 */
synchronized void enqueue(EventObject event, Vector<NamingListener> vector) {
    QueueElement newElt = new QueueElement(event, vector);

    if (head == null) {
        head = newElt;
        tail = newElt;
    } else {
        newElt.next = head;
        head.prev = newElt;
        head = newElt;
    }
    notify();
}
 
Example #28
Source File: EventQueue.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Enqueue an event.
 * @param event Either a <tt>NamingExceptionEvent</tt> or a subclass
 *              of <tt>NamingEvent</tt> or
 * <tt>UnsolicitedNotificatoniEvent</tt>.
 * If it is a subclass of <tt>NamingEvent</tt>, all listeners must implement
 * the corresponding subinterface of <tt>NamingListener</tt>.
 * For example, for a <tt>ObjectAddedEvent</tt>, all listeners <em>must</em>
 * implement the <tt>ObjectAddedListener</tt> interface.
 * <em>The current implementation does not check this before dispatching
 * the event.</em>
 * If the event is a <tt>NamingExceptionEvent</tt>, then all listeners
 * are notified.
 * @param vector List of NamingListeners that will be notified of event.
 */
synchronized void enqueue(EventObject event, Vector<NamingListener> vector) {
    QueueElement newElt = new QueueElement(event, vector);

    if (head == null) {
        head = newElt;
        tail = newElt;
    } else {
        newElt.next = head;
        head.prev = newElt;
        head = newElt;
    }
    notify();
}
 
Example #29
Source File: EventQueue.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Enqueue an event.
 * @param event Either a <tt>NamingExceptionEvent</tt> or a subclass
 *              of <tt>NamingEvent</tt> or
 * <tt>UnsolicitedNotificatoniEvent</tt>.
 * If it is a subclass of <tt>NamingEvent</tt>, all listeners must implement
 * the corresponding subinterface of <tt>NamingListener</tt>.
 * For example, for a <tt>ObjectAddedEvent</tt>, all listeners <em>must</em>
 * implement the <tt>ObjectAddedListener</tt> interface.
 * <em>The current implementation does not check this before dispatching
 * the event.</em>
 * If the event is a <tt>NamingExceptionEvent</tt>, then all listeners
 * are notified.
 * @param vector List of NamingListeners that will be notified of event.
 */
synchronized void enqueue(EventObject event, Vector<NamingListener> vector) {
    QueueElement newElt = new QueueElement(event, vector);

    if (head == null) {
        head = newElt;
        tail = newElt;
    } else {
        newElt.next = head;
        head.prev = newElt;
        head = newElt;
    }
    notify();
}
 
Example #30
Source File: EventQueue.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Enqueue an event.
 * @param event Either a <tt>NamingExceptionEvent</tt> or a subclass
 *              of <tt>NamingEvent</tt> or
 * <tt>UnsolicitedNotificatoniEvent</tt>.
 * If it is a subclass of <tt>NamingEvent</tt>, all listeners must implement
 * the corresponding subinterface of <tt>NamingListener</tt>.
 * For example, for a <tt>ObjectAddedEvent</tt>, all listeners <em>must</em>
 * implement the <tt>ObjectAddedListener</tt> interface.
 * <em>The current implementation does not check this before dispatching
 * the event.</em>
 * If the event is a <tt>NamingExceptionEvent</tt>, then all listeners
 * are notified.
 * @param vector List of NamingListeners that will be notified of event.
 */
synchronized void enqueue(EventObject event, Vector<NamingListener> vector) {
    QueueElement newElt = new QueueElement(event, vector);

    if (head == null) {
        head = newElt;
        tail = newElt;
    } else {
        newElt.next = head;
        head.prev = newElt;
        head = newElt;
    }
    notify();
}