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>
public abstract class AbstractDeploymentUnitService
extends Object
implements org.jboss.msc.service.Service<DeploymentUnit>
Abstract service responsible for managing the life-cycle of a
DeploymentUnit.- Author:
- John Bailey, Richard Opalka
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface org.jboss.msc.service.Service
NULL -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract DeploymentUnitcreateAndInitializeDeploymentUnit(org.jboss.msc.service.ServiceRegistry registry) Template method required for implementations to create and fully initialize a deployment unit instance.getValue()voidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context)
-
Field Details
-
name
-
-
Method Details
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException - Specified by:
startin interfaceorg.jboss.msc.Service- 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
-
getValue
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<DeploymentUnit>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getStatus
-