Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.geronimo.tomcat
Class TomcatContainer  view TomcatContainer download TomcatContainer.java

java.lang.Object
  extended byorg.apache.geronimo.tomcat.TomcatContainer
All Implemented Interfaces:
org.apache.geronimo.gbean.GBeanLifecycle

public class TomcatContainer
extends java.lang.Object
implements org.apache.geronimo.gbean.GBeanLifecycle

Apache Tomcat GBean

Version:
$Rev: 46019 $ $Date: 2004-09-14 11:56:06 +0200 (Tue, 14 Sep 2004) $

Field Summary
private  java.lang.ClassLoader classLoader
          Geronimo class loader
private static java.lang.String DEFAULT_CATALINA_HOME
          The default value of CATALINA_HOME variable
private  org.apache.catalina.Context defaultContext
          Tomcat default Context TODO: Make it a gbean
private  TomcatGeronimoEmbedded embedded
          Reference to the org.apache.catalina.Embedded embedded.
private  org.apache.catalina.Engine engine
          Tomcat Engine that will contain the host
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
private static org.apache.commons.logging.Log log
           
private  org.apache.geronimo.system.serverinfo.ServerInfo serverInfo
          Used only to resolve the paths
 
Constructor Summary
TomcatContainer()
           
TomcatContainer(java.lang.ClassLoader classLoader, java.lang.String catalinaHome, ObjectRetriever engineGBean, org.apache.geronimo.system.serverinfo.ServerInfo serverInfo)
          GBean constructor (invoked dynamically when the gbean is declared in a plan)
 
Method Summary
 void addConnector(org.apache.catalina.connector.Connector connector)
           
 void addContext(TomcatContext ctx)
          Creates and adds the context to the running host It simply delegates the call to Tomcat's Embedded and Host classes
 void doFail()
          Fails the GBean.
 void doStart()
          Instantiate and start up Tomcat's Embedded class See org.apache.catalina.startup.Embedded for details (TODO: provide the link to the javadoc)
 void doStop()
          Stops the target.
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 void removeConnector(org.apache.catalina.connector.Connector connector)
           
 void removeContext(TomcatContext ctx)
           
 void setCatalinaHome(java.lang.String catalinaHome)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

DEFAULT_CATALINA_HOME

private static final java.lang.String DEFAULT_CATALINA_HOME
The default value of CATALINA_HOME variable

See Also:
Constant Field Values

embedded

private TomcatGeronimoEmbedded embedded
Reference to the org.apache.catalina.Embedded embedded.


engine

private org.apache.catalina.Engine engine
Tomcat Engine that will contain the host


defaultContext

private org.apache.catalina.Context defaultContext
Tomcat default Context TODO: Make it a gbean


classLoader

private java.lang.ClassLoader classLoader
Geronimo class loader


serverInfo

private org.apache.geronimo.system.serverinfo.ServerInfo serverInfo
Used only to resolve the paths


GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

TomcatContainer

public TomcatContainer()

TomcatContainer

public TomcatContainer(java.lang.ClassLoader classLoader,
                       java.lang.String catalinaHome,
                       ObjectRetriever engineGBean,
                       org.apache.geronimo.system.serverinfo.ServerInfo serverInfo)
GBean constructor (invoked dynamically when the gbean is declared in a plan)

Method Detail

doFail

public void doFail()
Description copied from interface: org.apache.geronimo.gbean.GBeanLifecycle
Fails the GBean. This informs the GBean that it is about to transition to the failed state.

Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

doStart

public void doStart()
             throws java.lang.Exception
Instantiate and start up Tomcat's Embedded class See org.apache.catalina.startup.Embedded for details (TODO: provide the link to the javadoc)

Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle

doStop

public void doStop()
            throws java.lang.Exception
Description copied from interface: org.apache.geronimo.gbean.GBeanLifecycle
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle

addContext

public void addContext(TomcatContext ctx)
                throws java.lang.Exception
Creates and adds the context to the running host It simply delegates the call to Tomcat's Embedded and Host classes


removeContext

public void removeContext(TomcatContext ctx)

setCatalinaHome

public void setCatalinaHome(java.lang.String catalinaHome)

addConnector

public void addConnector(org.apache.catalina.connector.Connector connector)

removeConnector

public void removeConnector(org.apache.catalina.connector.Connector connector)

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()