java.lang.Object
org.apache.geronimo.tomcat.TomcatWebAppContext
- All Implemented Interfaces:
- org.apache.geronimo.gbean.GBeanLifecycle, TomcatContext
- public class TomcatWebAppContext
- extends java.lang.Object
- implements org.apache.geronimo.gbean.GBeanLifecycle, TomcatContext
Wrapper for a WebApplicationContext that sets up its J2EE environment.
- Version:
- $Rev: 56022 $ $Date: 2004-10-30 07:16:18 +0200 (Sat, 30 Oct 2004) $
|
Constructor Summary |
TomcatWebAppContext(java.lang.ClassLoader classLoader,
java.lang.String objectName,
java.lang.String originalSpecDD,
java.net.URI webAppRoot,
java.net.URI[] webClassPath,
boolean contextPriorityClassLoader,
java.net.URL configurationBaseUrl,
org.apache.geronimo.tomcat.util.SecurityHolder securityHolder,
java.lang.String virtualServer,
java.util.Map componentContext,
java.util.Set unshareableResources,
java.util.Set applicationManagedSecurityResources,
org.apache.geronimo.transaction.context.OnlineUserTransaction userTransaction,
org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager,
org.apache.geronimo.transaction.TrackedConnectionAssociator trackedConnectionAssociator,
TomcatContainer container,
org.apache.geronimo.security.jacc.RoleDesignateSource roleDesignateSource,
ObjectRetriever tomcatRealm,
ValveGBean tomcatValveChain,
org.apache.geronimo.j2ee.management.J2EEServer server,
org.apache.geronimo.j2ee.management.J2EEApplication application,
org.apache.geronimo.kernel.Kernel kernel)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.commons.logging.Log log
container
protected final TomcatContainer container
webClassLoader
private final java.lang.ClassLoader webClassLoader
context
protected org.apache.catalina.Context context
webAppRoot
private final java.net.URI webAppRoot
path
private java.lang.String path
docBase
private java.lang.String docBase
virtualServer
private java.lang.String virtualServer
realm
private final org.apache.catalina.Realm realm
valveChain
private final java.util.List valveChain
componentContext
private final java.util.Map componentContext
kernel
private final org.apache.geronimo.kernel.Kernel kernel
unshareableResources
private final java.util.Set unshareableResources
applicationManagedSecurityResources
private final java.util.Set applicationManagedSecurityResources
trackedConnectionAssociator
private final org.apache.geronimo.transaction.TrackedConnectionAssociator trackedConnectionAssociator
transactionContextManager
private final org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager
roleDesignateSource
private final org.apache.geronimo.security.jacc.RoleDesignateSource roleDesignateSource
securityHolder
private final org.apache.geronimo.tomcat.util.SecurityHolder securityHolder
server
private final org.apache.geronimo.j2ee.management.J2EEServer server
application
private final org.apache.geronimo.j2ee.management.J2EEApplication application
GBEAN_INFO
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
TomcatWebAppContext
public TomcatWebAppContext(java.lang.ClassLoader classLoader,
java.lang.String objectName,
java.lang.String originalSpecDD,
java.net.URI webAppRoot,
java.net.URI[] webClassPath,
boolean contextPriorityClassLoader,
java.net.URL configurationBaseUrl,
org.apache.geronimo.tomcat.util.SecurityHolder securityHolder,
java.lang.String virtualServer,
java.util.Map componentContext,
java.util.Set unshareableResources,
java.util.Set applicationManagedSecurityResources,
org.apache.geronimo.transaction.context.OnlineUserTransaction userTransaction,
org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager,
org.apache.geronimo.transaction.TrackedConnectionAssociator trackedConnectionAssociator,
TomcatContainer container,
org.apache.geronimo.security.jacc.RoleDesignateSource roleDesignateSource,
ObjectRetriever tomcatRealm,
ValveGBean tomcatValveChain,
org.apache.geronimo.j2ee.management.J2EEServer server,
org.apache.geronimo.j2ee.management.J2EEApplication application,
org.apache.geronimo.kernel.Kernel kernel)
throws java.lang.Exception
getServer
public java.lang.String getServer()
getDocBase
public java.lang.String getDocBase()
- Specified by:
getDocBase in interface TomcatContext
setDocBase
public void setDocBase(java.lang.String docBase)
getComponentContext
public java.util.Map getComponentContext()
- Specified by:
getComponentContext in interface TomcatContext
getVirtualServer
public java.lang.String getVirtualServer()
- Specified by:
getVirtualServer in interface TomcatContext
getWebClassLoader
public java.lang.ClassLoader getWebClassLoader()
- Specified by:
getWebClassLoader in interface TomcatContext
getKernel
public org.apache.geronimo.kernel.Kernel getKernel()
- Specified by:
getKernel in interface TomcatContext
getTransactionContextManager
public org.apache.geronimo.transaction.context.TransactionContextManager getTransactionContextManager()
- Specified by:
getTransactionContextManager in interface TomcatContext
getContext
public org.apache.catalina.Context getContext()
- Specified by:
getContext in interface TomcatContext
setContext
public void setContext(org.apache.catalina.Context context)
- Specified by:
setContext in interface TomcatContext
getPath
public java.lang.String getPath()
- Specified by:
getPath in interface TomcatContext
setPath
public void setPath(java.lang.String path)
getSecurityHolder
public org.apache.geronimo.tomcat.util.SecurityHolder getSecurityHolder()
- Specified by:
getSecurityHolder in interface TomcatContext
getApplicationManagedSecurityResources
public java.util.Set getApplicationManagedSecurityResources()
- Specified by:
getApplicationManagedSecurityResources in interface TomcatContext
getTrackedConnectionAssociator
public org.apache.geronimo.transaction.TrackedConnectionAssociator getTrackedConnectionAssociator()
- Specified by:
getTrackedConnectionAssociator in interface TomcatContext
getUnshareableResources
public java.util.Set getUnshareableResources()
- Specified by:
getUnshareableResources in interface TomcatContext
getRealm
public org.apache.catalina.Realm getRealm()
- Specified by:
getRealm in interface TomcatContext
getValveChain
public java.util.List getValveChain()
- Specified by:
getValveChain in interface TomcatContext
verifyObjectName
private void verifyObjectName(javax.management.ObjectName objectName)
- ObjectName must match this pattern:
domain:j2eeType=WebModule,name=MyName,J2EEServer=MyServer,J2EEApplication=MyApplication
doStart
public void doStart()
throws java.lang.Exception
- Description copied from interface:
org.apache.geronimo.gbean.GBeanLifecycle
- Starts the GBean. This informs the GBean that it is about to transition to the running state.
- 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
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
getGBeanInfo
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()