org.jboss.web
Class WebModule

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.web.WebModule
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean, WebModuleMBean

public class WebModule
extends org.jboss.system.ServiceMBeanSupport
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
See Also:
AbstractWebContainer

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
WebModule(org.jboss.deployment.DeploymentInfo di, AbstractWebContainer container, AbstractWebDeployer deployer)
           
 
Method Summary
protected  void destroyService()
           
 void startModule()
          Invokes the deployer start
protected  void startService()
           
 void stopModule()
          Invokes the deployer stop
protected  void stopService()
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

WebModule

public WebModule(org.jboss.deployment.DeploymentInfo di,
                 AbstractWebContainer container,
                 AbstractWebDeployer deployer)
Method Detail

startService

protected void startService()
                     throws Exception
Throws:
Exception

stopService

protected void stopService()
                    throws Exception
Throws:
Exception

destroyService

protected void destroyService()

startModule

public void startModule()
                 throws org.jboss.deployment.DeploymentException
Invokes the deployer start

Throws:
org.jboss.deployment.DeploymentException

stopModule

public void stopModule()
                throws org.jboss.deployment.DeploymentException
Invokes the deployer stop

Throws:
org.jboss.deployment.DeploymentException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.