org.jboss.web.deployers
Class WebModule

java.lang.Object
  extended by org.jboss.web.deployers.WebModule
All Implemented Interfaces:
WebModuleMBean

public class WebModule
extends Object
implements WebModuleMBean

A container service used to introduce war dependencies. This service is created by the AbstractWebContainer during the create(DeploymentInfo) call and registered under the name "jboss.web.deployment:war="+di.shortName This name is stored in the di.context under the key AbstractWebContainer.WEB_MODULE When the jboss-web.xml dependencies are satisfied, this service is started and this triggers the AbstractWebDeployer.start. Likewise, a stop on this service triggers the AbstractWebDeployer.stop.

Version:
$Revison:$
Author:
Scott.Stark@jboss.org, adrian@jboss.org
See Also:
AbstractWarDeployer

Constructor Summary
WebModule(org.jboss.deployers.structure.spi.DeploymentUnit unit, AbstractWarDeployer container, AbstractWarDeployment deployment)
           
 
Method Summary
 void create()
           
 void destroy()
           
 void setKernel(org.jboss.kernel.Kernel kernel)
           
 void setPolicyRegistration(org.jboss.security.authorization.PolicyRegistration policyRegistration)
          Set the PolicyRegistration instance
 void setSecurityManagement(ISecurityManagement securityManagement)
          Set the securityManagement.
 void start()
           
 void startModule()
          Invokes the deployer start
 void stop()
           
 void stopModule()
          Invokes the deployer stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebModule

public WebModule(org.jboss.deployers.structure.spi.DeploymentUnit unit,
                 AbstractWarDeployer container,
                 AbstractWarDeployment deployment)
Method Detail

setKernel

public void setKernel(org.jboss.kernel.Kernel kernel)
Specified by:
setKernel in interface WebModuleMBean

setPolicyRegistration

public void setPolicyRegistration(org.jboss.security.authorization.PolicyRegistration policyRegistration)
Set the PolicyRegistration instance

Specified by:
setPolicyRegistration in interface WebModuleMBean
Parameters:
policyRegistration - the policy registration instance

setSecurityManagement

public void setSecurityManagement(ISecurityManagement securityManagement)
Set the securityManagement.

Specified by:
setSecurityManagement in interface WebModuleMBean
Parameters:
securityManagement - the securityManagement.

create

public void create()
Specified by:
create in interface WebModuleMBean

start

public void start()
           throws Exception
Specified by:
start in interface WebModuleMBean
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface WebModuleMBean
Throws:
Exception

destroy

public void destroy()
Specified by:
destroy in interface WebModuleMBean

startModule

public void startModule()
                 throws Exception
Invokes the deployer start

Throws:
Exception

stopModule

public void stopModule()
                throws DeploymentException
Invokes the deployer stop

Throws:
DeploymentException


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.