org.apache.geronimo.jetty6.deployment
Class JettyModuleBuilder

java.lang.Object
  extended by org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder
      extended by org.apache.geronimo.jetty6.deployment.JettyModuleBuilder
All Implemented Interfaces:
GBeanLifecycle, ModuleBuilder

public class JettyModuleBuilder
extends AbstractWebModuleBuilder
implements GBeanLifecycle


Field Summary
protected  NamespaceDrivenBuilderCollection clusteringBuilders
           
static GBeanInfo GBEAN_INFO
           
 
Fields inherited from class org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder
ENTITY_BEAN_PATTERN, kernel, MANAGED_CONNECTION_FACTORY_PATTERN, moduleBuilderExtensions, namingBuilders, resourceEnvironmentSetter, securityBuilders, serviceBuilders, STATEFUL_SESSION_BEAN_PATTERN, STATELESS_SESSION_BEAN_PATTERN, webServiceBuilder
 
Constructor Summary
JettyModuleBuilder(Environment defaultEnvironment, Integer defaultSessionTimeoutSeconds, List<String> defaultWelcomeFiles, AbstractNameQuery jettyContainerName, JettyJspServletHolder jspServlet, Collection defaultServlets, Collection defaultFilters, Collection defaultFilterMappings, Map<String,String> defaultLocaleEncodingMappings, Map<String,String> defaultMimeTypeMappings, Object pojoWebServiceTemplate, Collection<WebServiceBuilder> webServiceBuilder, Collection clusteringBuilders, Collection securityBuilders, Collection serviceBuilders, NamingBuilder namingBuilders, Collection<ModuleBuilderExtension> moduleBuilderExtensions, ResourceEnvironmentSetter resourceEnvironmentSetter, Kernel kernel)
           
 
Method Summary
 void addGBeans(EARContext earContext, Module module, ClassLoader cl, Collection repository)
           
protected  Module createModule(Object plan, JarFile moduleFile, String targetPath, URL specDDUrl, boolean standAlone, String contextRoot, AbstractName earName, Naming naming, ModuleIDBuilder idBuilder)
           
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
static GBeanInfo getGBeanInfo()
           
 String getSchemaNamespace()
           
 void initContext(EARContext earContext, Module module, ClassLoader cl)
           
 
Methods inherited from class org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder
addGBeanDependencies, addPermissionToRole, addUnmappedJSPPermissions, basicInitContext, buildServletNameToPathMap, buildSpecSecurityConfig, check, checkString, collectRoleNames, configureBasicWebModuleAttributes, convertToServletSchema, createModule, createModule, createWebAppClassFinder, createWebAppClassFinder, determineDefaultContextRoot, getNamingBuilders, installModule, processRoleRefPermissions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clusteringBuilders

protected final NamespaceDrivenBuilderCollection clusteringBuilders

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

JettyModuleBuilder

public JettyModuleBuilder(Environment defaultEnvironment,
                          Integer defaultSessionTimeoutSeconds,
                          List<String> defaultWelcomeFiles,
                          AbstractNameQuery jettyContainerName,
                          JettyJspServletHolder jspServlet,
                          Collection defaultServlets,
                          Collection defaultFilters,
                          Collection defaultFilterMappings,
                          Map<String,String> defaultLocaleEncodingMappings,
                          Map<String,String> defaultMimeTypeMappings,
                          Object pojoWebServiceTemplate,
                          Collection<WebServiceBuilder> webServiceBuilder,
                          Collection clusteringBuilders,
                          Collection securityBuilders,
                          Collection serviceBuilders,
                          NamingBuilder namingBuilders,
                          Collection<ModuleBuilderExtension> moduleBuilderExtensions,
                          ResourceEnvironmentSetter resourceEnvironmentSetter,
                          Kernel kernel)
                   throws GBeanNotFoundException
Throws:
GBeanNotFoundException
Method Detail

doStart

public void doStart()
             throws Exception
Description copied from interface: GBeanLifecycle
Starts the GBean. This informs the GBean that it is about to transition to the running state.

Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception - if the target failed to start; this will cause a transition to the failed state

doStop

public void doStop()
Description copied from interface: GBeanLifecycle
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface GBeanLifecycle

doFail

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

Specified by:
doFail in interface GBeanLifecycle

createModule

protected Module createModule(Object plan,
                              JarFile moduleFile,
                              String targetPath,
                              URL specDDUrl,
                              boolean standAlone,
                              String contextRoot,
                              AbstractName earName,
                              Naming naming,
                              ModuleIDBuilder idBuilder)
                       throws DeploymentException
Specified by:
createModule in class AbstractWebModuleBuilder
Throws:
DeploymentException

initContext

public void initContext(EARContext earContext,
                        Module module,
                        ClassLoader cl)
                 throws DeploymentException
Specified by:
initContext in interface ModuleBuilder
Throws:
DeploymentException

addGBeans

public void addGBeans(EARContext earContext,
                      Module module,
                      ClassLoader cl,
                      Collection repository)
               throws DeploymentException
Specified by:
addGBeans in interface ModuleBuilder
Throws:
DeploymentException

getSchemaNamespace

public String getSchemaNamespace()
Specified by:
getSchemaNamespace in interface ModuleBuilder

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.