public class WarMetaDataProcessor extends Object implements DeploymentUnitProcessor
Modifier and Type | Class and Description |
---|---|
protected static class |
WarMetaDataProcessor.Ordering |
protected static class |
WarMetaDataProcessor.WebOrdering
Utility class to associate the logical name with the JAR name, needed
during the order resolving.
|
Constructor and Description |
---|
WarMetaDataProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
deploy(DeploymentPhaseContext phaseContext)
Merge everything into WarMetaData.
|
protected static void |
resolveOrder(List<WarMetaDataProcessor.WebOrdering> webOrderings,
List<String> order)
Generate the Jar processing order.
|
void |
undeploy(DeploymentUnit context)
Undo the deployment processing.
|
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException
deploy
in interface DeploymentUnitProcessor
phaseContext
- the deployment unit contextDeploymentUnitProcessingException
- if an error occurs during processingpublic void undeploy(DeploymentUnit context)
DeploymentUnitProcessor
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.
undeploy
in interface DeploymentUnitProcessor
context
- the deployment unit contextprotected static void resolveOrder(List<WarMetaDataProcessor.WebOrdering> webOrderings, List<String> order)
webOrderings
- The list of orderings, as parsed from the fragmentsorder
- The generated order listCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.