Class ManifestClassPathProcessor

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

public final class ManifestClassPathProcessor extends Object implements DeploymentUnitProcessor
A processor which adds class path entries for each manifest entry.

  • If the Class-Path entry is external to the deployment then it is handled by the external jar service.
  • If the entry refers to a sibling deployment then a dependency is added on that deployment. If this deployment is not present then this deployment will block until it is.
  • If the Class-Path entry points to a jar inside the ear that is not a deployment and not a /lib jar then a reference is added to this jars AdditionalModuleSpecification
  • Author:
    Stuart Douglas, Ales Justin
    • Constructor Details

      • ManifestClassPathProcessor

        public ManifestClassPathProcessor()
    • Method Details

      • deploy

        public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException
        We only allow a single deployment at a time to be run through the class path processor.

        This is because if multiple sibling deployments reference the same item we need to make sure that they end up with the same external module, and do not both create an external module with the same name.

        Specified by:
        deploy in interface DeploymentUnitProcessor
        Parameters:
        phaseContext - the deployment unit context
        Throws:
        DeploymentUnitProcessingException - if an error occurs during processing