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 */ }

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...