Package org.jboss.as.server.deployment
Class AbstractDeploymentUnitService
- java.lang.Object
-
- org.jboss.as.server.deployment.AbstractDeploymentUnitService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<DeploymentUnit>,org.jboss.msc.value.Value<DeploymentUnit>
- Direct Known Subclasses:
SubDeploymentUnitService
public abstract class AbstractDeploymentUnitService extends Object implements org.jboss.msc.service.Service<DeploymentUnit>
Abstract service responsible for managing the life-cycle of aDeploymentUnit.- Author:
- John Bailey, Richard Opalka
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractDeploymentUnitService.DeploymentStatus
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract DeploymentUnitcreateAndInitializeDeploymentUnit(org.jboss.msc.service.ServiceRegistry registry)Template method required for implementations to create and fully initialize a deployment unit instance.AbstractDeploymentUnitService.DeploymentStatusgetStatus()DeploymentUnitgetValue()voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Method Detail
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException- Specified by:
startin interfaceorg.jboss.msc.Service- Specified by:
startin interfaceorg.jboss.msc.service.Service<DeploymentUnit>- Throws:
org.jboss.msc.service.StartException
-
createAndInitializeDeploymentUnit
protected abstract DeploymentUnit createAndInitializeDeploymentUnit(org.jboss.msc.service.ServiceRegistry registry)
Template method required for implementations to create and fully initialize a deployment unit instance. This method should be used to attach any initial deployment unit attachments required for the deployment type.- Parameters:
registry- The service registry- Returns:
- An initialized DeploymentUnit instance
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<DeploymentUnit>
-
getValue
public DeploymentUnit getValue() throws IllegalStateException, IllegalArgumentException
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<DeploymentUnit>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getStatus
public AbstractDeploymentUnitService.DeploymentStatus getStatus()
-
-