FileDocCategorySizeDatePackage
EngineConfig.javaAPI DocApache Tomcat 6.0.143269Fri Jul 20 04:20:36 BST 2007org.apache.catalina.startup

EngineConfig

public class EngineConfig extends Object implements org.apache.catalina.LifecycleListener
Startup event listener for a Engine that configures the properties of that Engine, and the associated defined contexts.
author
Craig R. McClanahan
version
$Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Fields Summary
protected static org.apache.juli.logging.Log
log
protected org.apache.catalina.Engine
engine
The Engine we are associated with.
protected static final org.apache.catalina.util.StringManager
sm
The string resources for this package.
Constructors Summary
Methods Summary
public voidlifecycleEvent(org.apache.catalina.LifecycleEvent event)
Process the START event for an associated Engine.

param
event The lifecycle event that has occurred



    // --------------------------------------------------------- Public Methods


                         
        

        // Identify the engine we are associated with
        try {
            engine = (Engine) event.getLifecycle();
        } catch (ClassCastException e) {
            log.error(sm.getString("engineConfig.cce", event.getLifecycle()), e);
            return;
        }

        // Process the event that has occurred
        if (event.getType().equals(Lifecycle.START_EVENT))
            start();
        else if (event.getType().equals(Lifecycle.STOP_EVENT))
            stop();

    
protected voidstart()
Process a "start" event for this Engine.


        if (engine.getLogger().isDebugEnabled())
            engine.getLogger().debug(sm.getString("engineConfig.start"));

    
protected voidstop()
Process a "stop" event for this Engine.


        if (engine.getLogger().isDebugEnabled())
            engine.getLogger().debug(sm.getString("engineConfig.stop"));