final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (!JaxrsDeploymentMarker.isJaxrsDeployment(deploymentUnit)) { return;
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (!JaxrsDeploymentMarker.isJaxrsDeployment(deploymentUnit)) { return;
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (!JaxrsDeploymentMarker.isJaxrsDeployment(deploymentUnit)) { return;
@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (!JaxrsDeploymentMarker.isJaxrsDeployment(deploymentUnit)) { return;
@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (!JaxrsDeploymentMarker.isJaxrsDeployment(deploymentUnit)) { return;
@Override public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final Module module = deploymentUnit.getAttachment(Attachments.MODULE); if (!JaxrsDeploymentMarker.isJaxrsDeployment(deploymentUnit)) { return; } if (!DeploymentTypeMarker.isType(DeploymentType.WAR, deploymentUnit)) { return; } final WarMetaData warMetaData = deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY); final JBossWebMetaData webdata = warMetaData.getMergedJBossWebMetaData(); try { module.getClassLoader().loadClass(CDI_INJECTOR_FACTORY_CLASS); // don't set this param if CDI is not in classpath if (WeldDeploymentMarker.isWeldDeployment(deploymentUnit)) { JAXRS_LOGGER.debug("Found CDI, adding injector factory class"); setContextParameter(webdata, "resteasy.injector.factory", CDI_INJECTOR_FACTORY_CLASS); } } catch (ClassNotFoundException ignored) { } }
@Override public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final Module module = deploymentUnit.getAttachment(Attachments.MODULE); if (!JaxrsDeploymentMarker.isJaxrsDeployment(deploymentUnit)) { return; } if (!DeploymentTypeMarker.isType(DeploymentType.WAR, deploymentUnit)) { return; } final WarMetaData warMetaData = deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY); final JBossWebMetaData webdata = warMetaData.getMergedJBossWebMetaData(); try { module.getClassLoader().loadClass(CDI_INJECTOR_FACTORY_CLASS); // don't set this param if CDI is not in classpath if (WeldDeploymentMarker.isWeldDeployment(deploymentUnit)) { JAXRS_LOGGER.debug("Found CDI, adding injector factory class"); setContextParameter(webdata, "resteasy.injector.factory", CDI_INJECTOR_FACTORY_CLASS); } } catch (ClassNotFoundException ignored) { } }
@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (!JaxrsDeploymentMarker.isJaxrsDeployment(deploymentUnit)) { return;
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ModuleSpecification moduleSpecification = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION); final ModuleLoader moduleLoader = Module.getBootModuleLoader(); addDependency(moduleSpecification, moduleLoader, JAXB_API); if (!JaxrsDeploymentMarker.isJaxrsDeployment(deploymentUnit)) { return; } addDependency(moduleSpecification, moduleLoader, RESTEASY_ATOM); addDependency(moduleSpecification, moduleLoader, RESTEASY_HIBERNATE_VALIDATOR); addDependency(moduleSpecification, moduleLoader, RESTEASY_JAXRS); addDependency(moduleSpecification, moduleLoader, RESTEASY_JAXB); addDependency(moduleSpecification, moduleLoader, RESTEASY_JACKSON); addDependency(moduleSpecification, moduleLoader, RESTEASY_JETTISON); addDependency(moduleSpecification, moduleLoader, RESTEASY_JSAPI); addDependency(moduleSpecification, moduleLoader, RESTEASY_MULTIPART); addDependency(moduleSpecification, moduleLoader, RESTEASY_YAML); addDependency(moduleSpecification, moduleLoader, JACKSON_CORE_ASL); if (WeldDeploymentMarker.isPartOfWeldDeployment(deploymentUnit)) { addDependency(moduleSpecification, moduleLoader, RESTEASY_CDI); } }
final Module module = deploymentUnit.getAttachment(Attachments.MODULE); if (!JaxrsDeploymentMarker.isJaxrsDeployment(deploymentUnit)) { return;