FileDocCategorySizeDatePackage
PwcWebContainer.javaAPI DocGlassfish v2 API3612Fri May 04 22:35:28 BST 2007com.sun.enterprise.web

PwcWebContainer

public class PwcWebContainer extends Object implements PwcWebContainerLifecycle

Fields Summary
private org.apache.catalina.Engine
_engine
The parent/top-level container in _embedded for virtual servers.
private org.apache.catalina.startup.Embedded
_embedded
The embedded Catalina object.
private boolean
_started
Has this component been started yet?
Constructors Summary
Methods Summary
public org.apache.catalina.startup.EmbeddedgetEmbedded()

        return _embedded;
    
public org.apache.catalina.EnginegetEngine()

        return _engine;
    
public voidonInitialization(java.lang.String rootDir, java.lang.String instanceName, boolean useNaming, org.apache.catalina.Logger logger, java.lang.String embeddedClassName)


         
                                    
                                   
          
        Class c = Class.forName(embeddedClassName);
        _embedded = (Embedded) c.newInstance();
        _embedded.setUseNaming(useNaming);
        _embedded.setLogger(logger);
        _engine = _embedded.createEngine();
        _embedded.addEngine(_engine);
    
public voidonReady()

    
public voidonShutdown()

    
public voidonStartup()

        _started = true;

        _embedded.start();

    
public voidonTermination()

        _started = false;
        _embedded.stop();