public class JaxrsDependencyProcessor extends Object implements DeploymentUnitProcessor
Modifier and Type | Field and Description |
---|---|
static org.jboss.modules.ModuleIdentifier |
JACKSON_CORE_ASL
We include this so that jackson annotations will be available, otherwise they will be ignored which leads
to confusing behaviour.
|
static org.jboss.modules.ModuleIdentifier |
JAXB_API |
static org.jboss.modules.ModuleIdentifier |
RESTEASY_ATOM |
static org.jboss.modules.ModuleIdentifier |
RESTEASY_CDI |
static org.jboss.modules.ModuleIdentifier |
RESTEASY_JACKSON |
static org.jboss.modules.ModuleIdentifier |
RESTEASY_JAXB |
static org.jboss.modules.ModuleIdentifier |
RESTEASY_JAXRS |
static org.jboss.modules.ModuleIdentifier |
RESTEASY_JETTISON |
static org.jboss.modules.ModuleIdentifier |
RESTEASY_JSAPI |
static org.jboss.modules.ModuleIdentifier |
RESTEASY_MULTIPART |
static org.jboss.modules.ModuleIdentifier |
RESTEASY_YAML |
Constructor and Description |
---|
JaxrsDependencyProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
deploy(DeploymentPhaseContext phaseContext)
Perform a single step in processing the deployment phase.
|
void |
undeploy(DeploymentUnit context)
Undo the deployment processing.
|
public static org.jboss.modules.ModuleIdentifier RESTEASY_ATOM
public static org.jboss.modules.ModuleIdentifier RESTEASY_CDI
public static org.jboss.modules.ModuleIdentifier RESTEASY_JAXRS
public static org.jboss.modules.ModuleIdentifier RESTEASY_JAXB
public static org.jboss.modules.ModuleIdentifier RESTEASY_JACKSON
public static org.jboss.modules.ModuleIdentifier RESTEASY_JETTISON
public static org.jboss.modules.ModuleIdentifier RESTEASY_JSAPI
public static org.jboss.modules.ModuleIdentifier RESTEASY_MULTIPART
public static org.jboss.modules.ModuleIdentifier RESTEASY_YAML
public static org.jboss.modules.ModuleIdentifier JAXB_API
public static org.jboss.modules.ModuleIdentifier JACKSON_CORE_ASL
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 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 contextCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.