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
  • Field Details

    • name

      protected final String name
  • Method Details

    • start

      public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
      Specified by:
      start in interface org.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:
      stop in interface org.jboss.msc.Service
    • getValue

      Specified by:
      getValue in interface org.jboss.msc.value.Value<DeploymentUnit>
      Throws:
      IllegalStateException
      IllegalArgumentException
    • getStatus