Class ModuleDependencyProcessor

java.lang.Object
org.jboss.as.server.deployment.module.ModuleDependencyProcessor
All Implemented Interfaces:
DeploymentUnitProcessor

public final class ModuleDependencyProcessor extends Object implements DeploymentUnitProcessor
Deployment unit processor that will extract module dependencies from an archive.
Author:
John E. Bailey, Richard Opalka
  • Constructor Details

    • ModuleDependencyProcessor

      public ModuleDependencyProcessor()
  • Method Details

    • deploy

      public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException
      Process the deployment root for module dependency information.
      Specified by:
      deploy in interface DeploymentUnitProcessor
      Parameters:
      phaseContext - the deployment unit context
      Throws:
      DeploymentUnitProcessingException
    • undeploy

      public void undeploy(DeploymentUnit context)
      Description copied from interface: DeploymentUnitProcessor
      Undo the deployment processing. This method should undo any action taken by deploy(); however, if the deploy() method added services, they need not be removed here (they will automatically be removed).

      This method should avoid throwing exceptions; any exceptions thrown are logged and ignored. Implementations of this method cannot assume that the deployment process has (or has not) proceeded beyond the current processor, nor can they assume that the undeploy() method will be called from the same thread as the deploy() method.

      Specified by:
      undeploy in interface DeploymentUnitProcessor
      Parameters:
      context - the deployment unit context