微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

org.apache.catalina.ContainerListener的实例源码

项目:tomcat7    文件ContainerBase.java   
/**
 * Return the set of container listeners associated with this Container.
 * If this Container has no registered container listeners,a zero-length
 * array is returned.
 */
@Override
public ContainerListener[] findContainerListeners() {
    ContainerListener[] results =
        new ContainerListener[0];
    return listeners.toArray(results);
}
项目:tomcat7    文件ContainerBase.java   
/**
 * Notify all container event listeners that a particular event has
 * occurred for this Container.  The default implementation performs
 * this notification synchronously using the calling thread.
 *
 * @param type Event type
 * @param data Event data
 */
@Override
public void fireContainerEvent(String type,Object data) {

    if (listeners.size() < 1)
        return;

    ContainerEvent event = new ContainerEvent(this,type,data);
    // Note for each uses an iterator internally so this is safe
    for (ContainerListener listener : listeners) {
        listener.containerEvent(event);
    }
}
项目:tomcat7    文件TestMapperListener.java   
public ListenersInfo(Container container,ContainerListener[] containerListeners,LifecycleListener[] lifecycleListeners) {
    this.container = container;
    this.containerListeners = containerListeners;
    this.lifecycleListeners = lifecycleListeners;
}
项目:lams    文件ContainerBase.java   
/**
 * Add a container event listener to this component.
 *
 * @param listener The listener to add
 */
public void addContainerListener(ContainerListener listener) {

    synchronized (listeners) {
        listeners.add(listener);
    }

}
项目:lams    文件ContainerBase.java   
/**
 * Return the set of container listeners associated with this Container.
 * If this Container has no registered container listeners,a zero-length
 * array is returned.
 */
public ContainerListener[] findContainerListeners() {

    synchronized (listeners) {
        ContainerListener[] results = 
            new ContainerListener[listeners.size()];
        return ((ContainerListener[]) listeners.toArray(results));
    }

}
项目:lams    文件ContainerBase.java   
/**
 * Remove a container event listener from this component.
 *
 * @param listener The listener to remove
 */
public void removeContainerListener(ContainerListener listener) {

    synchronized (listeners) {
        listeners.remove(listener);
    }

}
项目:lams    文件ContainerBase.java   
/**
 * Notify all container event listeners that a particular event has
 * occurred for this Container.  The default implementation performs
 * this notification synchronously using the calling thread.
 *
 * @param type Event type
 * @param data Event data
 */
public void fireContainerEvent(String type,Object data) {

    if (listeners.size() < 1)
        return;
    ContainerEvent event = new ContainerEvent(this,data);
    ContainerListener list[] = new ContainerListener[0];
    synchronized (listeners) {
        list = (ContainerListener[]) listeners.toArray(list);
    }
    for (int i = 0; i < list.length; i++)
        ((ContainerListener) list[i]).containerEvent(event);

}
项目:jerrydog    文件ContainerBase.java   
/**
 * Add a container event listener to this component.
 *
 * @param listener The listener to add
 */
public void addContainerListener(ContainerListener listener) {

    synchronized (listeners) {
        listeners.add(listener);
    }

}
项目:jerrydog    文件ContainerBase.java   
/**
 * Return the set of container listeners associated with this Container.
 * If this Container has no registered container listeners,a zero-length
 * array is returned.
 */
public ContainerListener[] findContainerListeners() {

    synchronized (listeners) {
        ContainerListener[] results =
            new ContainerListener[listeners.size()];
        return ((ContainerListener[]) listeners.toArray(results));
    }

}
项目:jerrydog    文件ContainerBase.java   
/**
 * Remove a container event listener from this component.
 *
 * @param listener The listener to remove
 */
public void removeContainerListener(ContainerListener listener) {

    synchronized (listeners) {
        listeners.remove(listener);
    }

}
项目:jerrydog    文件ContainerBase.java   
/**
 * Notify all container event listeners that a particular event has
 * occurred for this Container.  The default implementation performs
 * this notification synchronously using the calling thread.
 *
 * @param type Event type
 * @param data Event data
 */
public void fireContainerEvent(String type,data);
    ContainerListener list[] = new ContainerListener[0];
    synchronized (listeners) {
        list = (ContainerListener[]) listeners.toArray(list);
    }
    for (int i = 0; i < list.length; i++)
        ((ContainerListener) list[i]).containerEvent(event);

}
项目:apache-tomcat-7.0.73-with-comment    文件TestMapperListener.java   
public ListenersInfo(Container container,LifecycleListener[] lifecycleListeners) {
    this.container = container;
    this.containerListeners = containerListeners;
    this.lifecycleListeners = lifecycleListeners;
}
项目:lazycat    文件ContainerBase.java   
/**
 * Notify all container event listeners that a particular event has occurred
 * for this Container. The default implementation performs this notification
 * synchronously using the calling thread.
 *
 * @param type
 *            Event type
 * @param data
 *            Event data
 */
@Override
public void fireContainerEvent(String type,data);
    // Note for each uses an iterator internally so this is safe
    for (ContainerListener listener : listeners) {
        listener.containerEvent(event);
    }
}
项目:class-guard    文件ContainerBase.java   
/**
 * Return the set of container listeners associated with this Container.
 * If this Container has no registered container listeners,a zero-length
 * array is returned.
 */
@Override
public ContainerListener[] findContainerListeners() {
    ContainerListener[] results =
        new ContainerListener[0];
    return listeners.toArray(results);
}
项目:class-guard    文件ContainerBase.java   
/**
 * Notify all container event listeners that a particular event has
 * occurred for this Container.  The default implementation performs
 * this notification synchronously using the calling thread.
 *
 * @param type Event type
 * @param data Event data
 */
@Override
public void fireContainerEvent(String type,data);
    // Note for each uses an iterator internally so this is safe
    for (ContainerListener listener : listeners) {
        listener.containerEvent(event);
    }
}
项目:apache-tomcat-7.0.57    文件ContainerBase.java   
/**
 * Return the set of container listeners associated with this Container.
 * If this Container has no registered container listeners,a zero-length
 * array is returned.
 */
@Override
public ContainerListener[] findContainerListeners() {
    ContainerListener[] results =
        new ContainerListener[0];
    return listeners.toArray(results);
}
项目:apache-tomcat-7.0.57    文件ContainerBase.java   
/**
 * Notify all container event listeners that a particular event has
 * occurred for this Container.  The default implementation performs
 * this notification synchronously using the calling thread.
 *
 * @param type Event type
 * @param data Event data
 */
@Override
public void fireContainerEvent(String type,data);
    // Note for each uses an iterator internally so this is safe
    for (ContainerListener listener : listeners) {
        listener.containerEvent(event);
    }
}
项目:apache-tomcat-7.0.57    文件TestMapperListener.java   
public ListenersInfo(Container container,LifecycleListener[] lifecycleListeners) {
    this.container = container;
    this.containerListeners = containerListeners;
    this.lifecycleListeners = lifecycleListeners;
}
项目:HowTomcatWorks    文件ContainerBase.java   
/**
 * Add a container event listener to this component.
 *
 * @param listener The listener to add
 */
public void addContainerListener(ContainerListener listener) {

    synchronized (listeners) {
        listeners.add(listener);
    }

}
项目:HowTomcatWorks    文件ContainerBase.java   
/**
 * Return the set of container listeners associated with this Container.
 * If this Container has no registered container listeners,a zero-length
 * array is returned.
 */
public ContainerListener[] findContainerListeners() {

    synchronized (listeners) {
        ContainerListener[] results =
            new ContainerListener[listeners.size()];
        return ((ContainerListener[]) listeners.toArray(results));
    }

}
项目:HowTomcatWorks    文件ContainerBase.java   
/**
 * Remove a container event listener from this component.
 *
 * @param listener The listener to remove
 */
public void removeContainerListener(ContainerListener listener) {

    synchronized (listeners) {
        listeners.remove(listener);
    }

}
项目:HowTomcatWorks    文件ContainerBase.java   
/**
 * Notify all container event listeners that a particular event has
 * occurred for this Container.  The default implementation performs
 * this notification synchronously using the calling thread.
 *
 * @param type Event type
 * @param data Event data
 */
public void fireContainerEvent(String type,data);
    ContainerListener list[] = new ContainerListener[0];
    synchronized (listeners) {
        list = (ContainerListener[]) listeners.toArray(list);
    }
    for (int i = 0; i < list.length; i++)
        ((ContainerListener) list[i]).containerEvent(event);

}
项目:WBSAirback    文件ContainerBase.java   
/**
 * Add a container event listener to this component.
 *
 * @param listener The listener to add
 */
@Override
public void addContainerListener(ContainerListener listener) {

    synchronized (listeners) {
        listeners.add(listener);
    }

}
项目:WBSAirback    文件ContainerBase.java   
/**
 * Return the set of container listeners associated with this Container.
 * If this Container has no registered container listeners,a zero-length
 * array is returned.
 */
@Override
public ContainerListener[] findContainerListeners() {

    synchronized (listeners) {
        ContainerListener[] results = 
            new ContainerListener[listeners.size()];
        return listeners.toArray(results);
    }

}
项目:WBSAirback    文件ContainerBase.java   
/**
 * Remove a container event listener from this component.
 *
 * @param listener The listener to remove
 */
@Override
public void removeContainerListener(ContainerListener listener) {

    synchronized (listeners) {
        listeners.remove(listener);
    }

}
项目:WBSAirback    文件ContainerBase.java   
/**
 * Notify all container event listeners that a particular event has
 * occurred for this Container.  The default implementation performs
 * this notification synchronously using the calling thread.
 *
 * @param type Event type
 * @param data Event data
 */
@Override
public void fireContainerEvent(String type,data);
    ContainerListener list[] = new ContainerListener[0];
    synchronized (listeners) {
        list = listeners.toArray(list);
    }
    for (int i = 0; i < list.length; i++)
        list[i].containerEvent(event);

}
项目:embed-apache-tomcat    文件AbstractContainerBuilder.java   
@Override
@SuppressWarnings("unchecked")
public final T addContainerListener(ContainerListener listener) {
    LOGGER.log(Level.FINE,"addContainerListener({0})",listener.getClass().getName());
    container.addContainerListener(listener);
    return (T) this;
}
项目:tomcat7    文件FailedContext.java   
@Override
public void addContainerListener(ContainerListener listener) { /* NO-OP */ }
项目:tomcat7    文件FailedContext.java   
@Override
public ContainerListener[] findContainerListeners() { return null; }
项目:tomcat7    文件FailedContext.java   
@Override
public void removeContainerListener(ContainerListener listener) { /* NO-OP */ }
项目:tomcat7    文件TesterContext.java   
@Override
public void addContainerListener(ContainerListener listener) {
    // NO-OP
}
项目:tomcat7    文件TesterContext.java   
@Override
public ContainerListener[] findContainerListeners() {
    return null;
}
项目:tomcat7    文件TesterContext.java   
@Override
public void removeContainerListener(ContainerListener listener) {
    // NO-OP
}
项目:tomcat7    文件TesterHost.java   
@Override
public void addContainerListener(ContainerListener listener) {
    // NO-OP
}
项目:tomcat7    文件TesterHost.java   
@Override
public ContainerListener[] findContainerListeners() {
    return null;
}
项目:tomcat7    文件TesterHost.java   
@Override
public void removeContainerListener(ContainerListener listener) {
    // NO-OP
}
项目:apache-tomcat-7.0.73-with-comment    文件FailedContext.java   
@Override
public void addContainerListener(ContainerListener listener) { /* NO-OP */ }

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。