Class ManifestAttachmentProcessor
- java.lang.Object
-
- org.jboss.as.server.deployment.module.ManifestAttachmentProcessor
-
- All Implemented Interfaces:
DeploymentUnitProcessor
public class ManifestAttachmentProcessor extends Object implements DeploymentUnitProcessor
Deployment unit processor that attaches the deployment root manifest to the context. It does nothing if the manifest is already attached or there is no manifest in the deployment root file.- Since:
- 14-Oct-2010
- Author:
- Thomas.Diesler@jboss.com, Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description ManifestAttachmentProcessor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeploy(DeploymentPhaseContext phaseContext)Process the deployment root for the manifest.static ManifestgetManifest(ResourceRoot resourceRoot)voidundeploy(DeploymentUnit context)Undo the deployment processing.
-
-
-
Method Detail
-
deploy
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException
Process the deployment root for the manifest.- Specified by:
deployin interfaceDeploymentUnitProcessor- Parameters:
phaseContext- the deployment unit context- Throws:
DeploymentUnitProcessingException
-
getManifest
public static Manifest getManifest(ResourceRoot resourceRoot) throws DeploymentUnitProcessingException
-
undeploy
public void undeploy(DeploymentUnit context)
Description copied from interface:DeploymentUnitProcessorUndo the deployment processing. This method should undo any action taken bydeploy(); however, if thedeploy()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 thedeploy()method.- Specified by:
undeployin interfaceDeploymentUnitProcessor- Parameters:
context- the deployment unit context
-
-