类javax.naming.event.NamingListener源码实例Demo

下面列出了怎么用javax.naming.event.NamingListener的API类实例代码及写法,或者点击链接到github查看源代码。

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);
}
 
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);
}
 
public void addNamingListener(Name name, int i, NamingListener namingListener)
        throws NamingException {
    MicroIntegratorBaseUtils.checkSecurity();
    getEventContext(name).addNamingListener(name, i, namingListener);
}
 
public void addNamingListener(String s, int i, NamingListener namingListener)
        throws NamingException {
    MicroIntegratorBaseUtils.checkSecurity();
    getEventContext(s).addNamingListener(s, i, namingListener);
}
 
public void removeNamingListener(NamingListener namingListener) throws NamingException {
    MicroIntegratorBaseUtils.checkSecurity();
    getEventContext().removeNamingListener(namingListener);
}
 
public void addNamingListener(Name name, String filter, SearchControls searchControls,
                              NamingListener namingListener) throws NamingException {
    MicroIntegratorBaseUtils.checkSecurity();
    getEventDirContext(name)
            .addNamingListener(name, filter, searchControls, namingListener);
}
 
public void addNamingListener(String s, String filter, SearchControls searchControls,
                              NamingListener namingListener) throws NamingException {
    MicroIntegratorBaseUtils.checkSecurity();
    getEventDirContext(s).addNamingListener(s, filter, searchControls, namingListener);
}
 
源代码8 项目: dragonwell8_jdk   文件: EventQueue.java
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
RemoveNamingListener(EventContext ctx, NamingListener listener) {
    this.ctx = ctx;
    this.listener = listener;
}
 
源代码10 项目: TencentKona-8   文件: EventQueue.java
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
源代码11 项目: TencentKona-8   文件: RemoveNamingListenerTest.java
RemoveNamingListener(EventContext ctx, NamingListener listener) {
    this.ctx = ctx;
    this.listener = listener;
}
 
源代码12 项目: jdk8u60   文件: EventQueue.java
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
源代码13 项目: openjdk-jdk8u   文件: EventQueue.java
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
源代码14 项目: openjdk-jdk8u   文件: RemoveNamingListenerTest.java
RemoveNamingListener(EventContext ctx, NamingListener listener) {
    this.ctx = ctx;
    this.listener = listener;
}
 
源代码15 项目: openjdk-jdk8u-backup   文件: EventQueue.java
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
源代码16 项目: openjdk-jdk9   文件: EventQueue.java
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
源代码17 项目: jdk8u-jdk   文件: EventQueue.java
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
源代码18 项目: hottub   文件: EventQueue.java
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
源代码19 项目: openjdk-8-source   文件: EventQueue.java
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
源代码20 项目: openjdk-8   文件: EventQueue.java
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
源代码21 项目: jdk8u_jdk   文件: EventQueue.java
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
源代码22 项目: jdk8u_jdk   文件: RemoveNamingListenerTest.java
RemoveNamingListener(EventContext ctx, NamingListener listener) {
    this.ctx = ctx;
    this.listener = listener;
}
 
源代码23 项目: jdk8u-jdk   文件: EventQueue.java
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
源代码24 项目: jdk8u-dev-jdk   文件: EventQueue.java
QueueElement(EventObject event, Vector<NamingListener> vector) {
    this.event = event;
    this.vector = vector;
}
 
源代码25 项目: dragonwell8_jdk   文件: EventQueue.java
/**
 * 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();
}
 
源代码26 项目: TencentKona-8   文件: EventQueue.java
/**
 * 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();
}
 
源代码27 项目: jdk8u60   文件: EventQueue.java
/**
 * 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();
}
 
源代码28 项目: openjdk-jdk8u   文件: EventQueue.java
/**
 * 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();
}
 
源代码29 项目: openjdk-jdk8u-backup   文件: EventQueue.java
/**
 * 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();
}
 
源代码30 项目: openjdk-jdk9   文件: EventQueue.java
/**
 * Enqueue an event.
 * @param event Either a {@code NamingExceptionEvent} or a subclass
 *        of {@code NamingEvent} or
 *        {@code UnsolicitedNotificationEvent}.
 * If it is a subclass of {@code NamingEvent}, all listeners must implement
 * the corresponding subinterface of {@code NamingListener}.
 * For example, for an {@code ObjectAddedEvent}, all listeners <em>must</em>
 * implement the {@code ObjectAddedListener} interface.
 * <em>The current implementation does not check this before dispatching
 * the event.</em>
 * If the event is a {@code NamingExceptionEvent}, 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();
}
 
 类所在包
 同包方法