public class WarAnnotationDeploymentProcessor extends Object implements DeploymentUnitProcessor
Constructor and Description |
---|
WarAnnotationDeploymentProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
deploy(DeploymentPhaseContext phaseContext)
Process web annotations.
|
protected org.jboss.annotation.javaee.Descriptions |
getDescription(String description) |
protected org.jboss.metadata.javaee.spec.DescriptionGroupMetaData |
getDescriptionGroup(String description) |
protected org.jboss.metadata.javaee.spec.DescriptionGroupMetaData |
getDescriptionGroup(String description,
String displayName,
String smallIcon,
String largeIcon) |
protected org.jboss.annotation.javaee.DisplayNames |
getDisplayName(String displayName) |
protected org.jboss.annotation.javaee.Icons |
getIcons(String smallIcon,
String largeIcon) |
protected org.jboss.metadata.web.spec.WebMetaData |
processAnnotations(org.jboss.jandex.Index index)
Process a single index.
|
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 org.jboss.metadata.web.spec.WebMetaData processAnnotations(org.jboss.jandex.Index index) throws DeploymentUnitProcessingException
index
- the annotation indexDeploymentUnitProcessingException
protected org.jboss.annotation.javaee.Descriptions getDescription(String description)
protected org.jboss.annotation.javaee.DisplayNames getDisplayName(String displayName)
protected org.jboss.metadata.javaee.spec.DescriptionGroupMetaData getDescriptionGroup(String description)
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.