org.apache.catalina.ContainerListener Java Examples
The following examples show how to use
org.apache.catalina.ContainerListener.
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: ContainerBase.java From Tomcat7.0.67 with Apache License 2.0 | 5 votes |
/** * 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); } }
Example #2
Source File: ContainerBase.java From Tomcat7.0.67 with Apache License 2.0 | 5 votes |
/** * 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); }
Example #3
Source File: ContainerMBean.java From Tomcat8-Source-Read with MIT License | 5 votes |
/** * List the class name of each of the container listeners added to this * container. * @return the container listeners class names * @throws MBeanException propagated from the managed resource access */ public String[] findContainerListenerNames() throws MBeanException { Container container = doGetManagedResource(); List<String> result = new ArrayList<>(); ContainerListener[] listeners = container.findContainerListeners(); for(ContainerListener listener: listeners){ result.add(listener.getClass().getName()); } return result.toArray(new String[result.size()]); }
Example #4
Source File: TestMapperListener.java From Tomcat7.0.67 with Apache License 2.0 | 5 votes |
public ListenersInfo(Container container, ContainerListener[] containerListeners, LifecycleListener[] lifecycleListeners) { this.container = container; this.containerListeners = containerListeners; this.lifecycleListeners = lifecycleListeners; }
Example #5
Source File: ContainerBase.java From Tomcat8-Source-Read with MIT License | 5 votes |
/** * 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); }
Example #6
Source File: ContainerBase.java From Tomcat8-Source-Read with MIT License | 5 votes |
/** * 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); } }
Example #7
Source File: TestMapperListener.java From Tomcat8-Source-Read with MIT License | 5 votes |
public ListenersInfo(Container container, ContainerListener[] containerListeners, LifecycleListener[] lifecycleListeners) { this.container = container; this.containerListeners = containerListeners; this.lifecycleListeners = lifecycleListeners; }
Example #8
Source File: TestMapperListener.java From tomcatsrc with Apache License 2.0 | 5 votes |
public ListenersInfo(Container container, ContainerListener[] containerListeners, LifecycleListener[] lifecycleListeners) { this.container = container; this.containerListeners = containerListeners; this.lifecycleListeners = lifecycleListeners; }
Example #9
Source File: TesterContext.java From tomcatsrc with Apache License 2.0 | 4 votes |
@Override public void addContainerListener(ContainerListener listener) { // NO-OP }
Example #10
Source File: TesterContext.java From Tomcat7.0.67 with Apache License 2.0 | 4 votes |
@Override public void addContainerListener(ContainerListener listener) { // NO-OP }
Example #11
Source File: TesterContext.java From Tomcat7.0.67 with Apache License 2.0 | 4 votes |
@Override public ContainerListener[] findContainerListeners() { return null; }
Example #12
Source File: TesterContext.java From Tomcat7.0.67 with Apache License 2.0 | 4 votes |
@Override public void removeContainerListener(ContainerListener listener) { // NO-OP }
Example #13
Source File: FailedContext.java From tomcatsrc with Apache License 2.0 | 4 votes |
@Override public void addContainerListener(ContainerListener listener) { /* NO-OP */ }
Example #14
Source File: FailedContext.java From tomcatsrc with Apache License 2.0 | 4 votes |
@Override public ContainerListener[] findContainerListeners() { return null; }
Example #15
Source File: FailedContext.java From tomcatsrc with Apache License 2.0 | 4 votes |
@Override public void removeContainerListener(ContainerListener listener) { /* NO-OP */ }
Example #16
Source File: FailedContext.java From Tomcat8-Source-Read with MIT License | 4 votes |
@Override public ContainerListener[] findContainerListeners() { return null; }
Example #17
Source File: TesterContext.java From tomcatsrc with Apache License 2.0 | 4 votes |
@Override public ContainerListener[] findContainerListeners() { return null; }
Example #18
Source File: TesterContext.java From tomcatsrc with Apache License 2.0 | 4 votes |
@Override public void removeContainerListener(ContainerListener listener) { // NO-OP }
Example #19
Source File: TesterHost.java From tomcatsrc with Apache License 2.0 | 4 votes |
@Override public void addContainerListener(ContainerListener listener) { // NO-OP }
Example #20
Source File: TesterHost.java From tomcatsrc with Apache License 2.0 | 4 votes |
@Override public ContainerListener[] findContainerListeners() { return null; }
Example #21
Source File: TesterHost.java From tomcatsrc with Apache License 2.0 | 4 votes |
@Override public void removeContainerListener(ContainerListener listener) { // NO-OP }
Example #22
Source File: FailedContext.java From Tomcat7.0.67 with Apache License 2.0 | 4 votes |
@Override public void removeContainerListener(ContainerListener listener) { /* NO-OP */ }
Example #23
Source File: FailedContext.java From Tomcat7.0.67 with Apache License 2.0 | 4 votes |
@Override public ContainerListener[] findContainerListeners() { return null; }
Example #24
Source File: FailedContext.java From Tomcat7.0.67 with Apache License 2.0 | 4 votes |
@Override public void addContainerListener(ContainerListener listener) { /* NO-OP */ }
Example #25
Source File: TesterHost.java From Tomcat8-Source-Read with MIT License | 4 votes |
@Override public void removeContainerListener(ContainerListener listener) { // NO-OP }
Example #26
Source File: TesterHost.java From Tomcat8-Source-Read with MIT License | 4 votes |
@Override public ContainerListener[] findContainerListeners() { return null; }
Example #27
Source File: TesterHost.java From Tomcat8-Source-Read with MIT License | 4 votes |
@Override public void addContainerListener(ContainerListener listener) { // NO-OP }
Example #28
Source File: TesterContext.java From Tomcat8-Source-Read with MIT License | 4 votes |
@Override public void removeContainerListener(ContainerListener listener) { // NO-OP }
Example #29
Source File: TesterContext.java From Tomcat8-Source-Read with MIT License | 4 votes |
@Override public ContainerListener[] findContainerListeners() { return null; }
Example #30
Source File: TesterContext.java From Tomcat8-Source-Read with MIT License | 4 votes |
@Override public void addContainerListener(ContainerListener listener) { // NO-OP }