org.apache.tomee.catalina
Class GlobalListenerSupport

java.lang.Object
  extended by org.apache.tomee.catalina.GlobalListenerSupport
All Implemented Interfaces:
PropertyChangeListener, EventListener, org.apache.catalina.LifecycleListener

public class GlobalListenerSupport
extends Object
implements PropertyChangeListener, org.apache.catalina.LifecycleListener

Observers events from Tomcat to configure web applications etc.

Version:
$Rev$ $Date$

Nested Class Summary
static class GlobalListenerSupport.MoniterableHashMap
           
 
Field Summary
static String DESTROY_EVENT
          The LifecycleEvent type for the "component destroy" event.
static String INIT_EVENT
          The LifecycleEvent type for the "component init" event.
 
Constructor Summary
GlobalListenerSupport(org.apache.catalina.core.StandardServer standardServer, ContextListener contextListener)
          Creates a new instance.
 
Method Summary
 void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
          
 void propertyChange(PropertyChangeEvent event)
          
 void start()
          Starts operation.
 void stop()
          Stops operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INIT_EVENT

public static final String INIT_EVENT
The LifecycleEvent type for the "component init" event. Tomcat 6.0.x only Removed in Tomcat 7

See Also:
Constant Field Values

DESTROY_EVENT

public static final String DESTROY_EVENT
The LifecycleEvent type for the "component destroy" event. Tomcat 6.0.x only Removed in Tomcat 7

See Also:
Constant Field Values
Constructor Detail

GlobalListenerSupport

public GlobalListenerSupport(org.apache.catalina.core.StandardServer standardServer,
                             ContextListener contextListener)
Creates a new instance.

Parameters:
standardServer - tomcat server instance
contextListener - context listener instance
Method Detail

lifecycleEvent

public void lifecycleEvent(org.apache.catalina.LifecycleEvent event)

Specified by:
lifecycleEvent in interface org.apache.catalina.LifecycleListener

start

public void start()
Starts operation.


stop

public void stop()
Stops operation.


propertyChange

public void propertyChange(PropertyChangeEvent event)

Specified by:
propertyChange in interface PropertyChangeListener


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.