Class JBossAllXmlParserRegisteringProcessor<T>
java.lang.Object
org.jboss.as.server.deployment.jbossallxml.JBossAllXmlParserRegisteringProcessor<T>
- All Implemented Interfaces:
DeploymentUnitProcessor
public class JBossAllXmlParserRegisteringProcessor<T>
extends Object
implements DeploymentUnitProcessor
DUP that registers a
JBossAllXMLParserDescription with the DU. These should all be registered in the
org.jboss.as.server.deployment.Phase#STRUCTURE_REGISTER_JBOSS_ALL_XML_PARSER phase.- Author:
- Stuart Douglas
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for building JBossAllXmlParserRegisteringProcessor that registers multiple parsers at once. -
Constructor Summary
ConstructorsConstructorDescriptionJBossAllXmlParserRegisteringProcessor(QName rootElement, AttachmentKey<T> attachmentKey, JBossAllXMLParser<T> parser) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()voiddeploy(DeploymentPhaseContext phaseContext) Perform a single step in processing the deployment phase.voidundeploy(DeploymentUnit unit) Undo the deployment processing.
-
Constructor Details
-
JBossAllXmlParserRegisteringProcessor
public JBossAllXmlParserRegisteringProcessor(QName rootElement, AttachmentKey<T> attachmentKey, JBossAllXMLParser<T> parser)
-
-
Method Details
-
deploy
Description copied from interface:DeploymentUnitProcessorPerform a single step in processing the deployment phase. The resulting state after executing this method should be that either the method completes normally and all changes are made, or an exception is thrown and all changes made in this method are reverted such that the original pre-invocation state is restored.Data stored on the phase context only exists until the end of the phase. The deployment unit context which is persistent is available via
context.getDeploymentUnitContext().- Specified by:
deployin interfaceDeploymentUnitProcessor- Parameters:
phaseContext- the deployment unit context- Throws:
DeploymentUnitProcessingException- if an error occurs during processing
-
undeploy
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:
unit- the deployment unit context
-
builder
-