public class JaxrsIntegrationProcessor extends Object implements DeploymentUnitProcessor
Modifier and Type | Field and Description |
---|---|
static String |
RESTEASY_SCAN |
static String |
RESTEASY_SCAN_PROVIDERS |
static String |
RESTEASY_SCAN_RESOURCES |
Constructor and Description |
---|
JaxrsIntegrationProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
deploy(DeploymentPhaseContext phaseContext)
Perform a single step in processing the deployment phase.
|
static org.jboss.metadata.javaee.spec.ParamValueMetaData |
findContextParam(org.jboss.metadata.web.jboss.JBossWebMetaData webdata,
String name) |
static org.jboss.metadata.javaee.spec.ParamValueMetaData |
findInitParam(org.jboss.metadata.web.jboss.JBossWebMetaData webdata,
String name) |
static boolean |
servletMappingsExist(org.jboss.metadata.web.jboss.JBossWebMetaData webdata,
String servletName) |
static void |
setContextParameter(org.jboss.metadata.web.jboss.JBossWebMetaData webdata,
String name,
String value) |
protected void |
setFilterInitParam(org.jboss.metadata.web.spec.FilterMetaData filter,
String name,
String value) |
protected void |
setServletInitParam(org.jboss.metadata.web.jboss.JBossServletMetaData servlet,
String name,
String value) |
void |
undeploy(DeploymentUnit context)
Undo the deployment processing.
|
public static final String RESTEASY_SCAN
public static final String RESTEASY_SCAN_RESOURCES
public static final String RESTEASY_SCAN_PROVIDERS
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException
DeploymentUnitProcessor
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()
.
deploy
in interface DeploymentUnitProcessor
phaseContext
- the deployment unit contextDeploymentUnitProcessingException
- if an error occurs during processingprotected void setServletInitParam(org.jboss.metadata.web.jboss.JBossServletMetaData servlet, String name, String value)
public 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 void setFilterInitParam(org.jboss.metadata.web.spec.FilterMetaData filter, String name, String value)
public static org.jboss.metadata.javaee.spec.ParamValueMetaData findContextParam(org.jboss.metadata.web.jboss.JBossWebMetaData webdata, String name)
public static org.jboss.metadata.javaee.spec.ParamValueMetaData findInitParam(org.jboss.metadata.web.jboss.JBossWebMetaData webdata, String name)
public static boolean servletMappingsExist(org.jboss.metadata.web.jboss.JBossWebMetaData webdata, String servletName)
Copyright © 2014 JBoss by Red Hat. All rights reserved.