public class JaxrsScanningProcessor extends Object implements DeploymentUnitProcessor
Modifier and Type | Field and Description |
---|---|
static org.jboss.jandex.DotName |
APPLICATION |
static Set<String> |
BOOT_CLASSES |
Constructor and Description |
---|
JaxrsScanningProcessor() |
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
checkDeclaredApplicationClassAsServlet(org.jboss.metadata.web.jboss.JBossWebMetaData webData,
ClassLoader classLoader) |
void |
deploy(DeploymentPhaseContext phaseContext)
Perform a single step in processing the deployment phase.
|
protected boolean |
hasBootClasses(org.jboss.metadata.web.jboss.JBossWebMetaData webdata)
If any servlet/filter classes are declared, then we probably don't want to scan.
|
protected void |
scan(DeploymentUnit du,
ClassLoader classLoader,
ResteasyDeploymentData resteasyDeploymentData) |
protected void |
scanWebDeployment(DeploymentUnit du,
org.jboss.metadata.web.jboss.JBossWebMetaData webdata,
ClassLoader classLoader,
ResteasyDeploymentData resteasyDeploymentData) |
void |
undeploy(DeploymentUnit context)
Undo the deployment processing.
|
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 contextprotected boolean hasBootClasses(org.jboss.metadata.web.jboss.JBossWebMetaData webdata) throws DeploymentUnitProcessingException
protected void scanWebDeployment(DeploymentUnit du, org.jboss.metadata.web.jboss.JBossWebMetaData webdata, ClassLoader classLoader, ResteasyDeploymentData resteasyDeploymentData) throws DeploymentUnitProcessingException
protected void scan(DeploymentUnit du, ClassLoader classLoader, ResteasyDeploymentData resteasyDeploymentData) throws DeploymentUnitProcessingException, org.jboss.modules.ModuleLoadException
DeploymentUnitProcessingException
org.jboss.modules.ModuleLoadException
protected Class<?> checkDeclaredApplicationClassAsServlet(org.jboss.metadata.web.jboss.JBossWebMetaData webData, ClassLoader classLoader) throws DeploymentUnitProcessingException
Copyright © 2015 JBoss by Red Hat. All rights reserved.