public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { DeploymentUnit depUnit = phaseContext.getDeploymentUnit(); String depName = depUnit.getName().toLowerCase(Locale.ENGLISH); if (depName.endsWith(WAR_EXTENSION)) { MountExplodedMarker.setMountExploded(depUnit); } }
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { DeploymentUnit depUnit = phaseContext.getDeploymentUnit(); String depName = depUnit.getName().toLowerCase(Locale.ENGLISH); if(depName.endsWith(WAR_EXTENSION) || depName.endsWith(WAB_EXTENSION)) { MountExplodedMarker.setMountExploded(depUnit); } }
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { DeploymentUnit depUnit = phaseContext.getDeploymentUnit(); String depName = depUnit.getName().toLowerCase(Locale.ENGLISH); if(depName.endsWith(WAR_EXTENSION) || depName.endsWith(WAB_EXTENSION)) { MountExplodedMarker.setMountExploded(depUnit); } }
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { DeploymentUnit depUnit = phaseContext.getDeploymentUnit(); String depName = depUnit.getName().toLowerCase(Locale.ENGLISH); if (depName.endsWith(WAR_EXTENSION)) { MountExplodedMarker.setMountExploded(depUnit); } }
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { DeploymentUnit depUnit = phaseContext.getDeploymentUnit(); String depName = depUnit.getName().toLowerCase(Locale.ENGLISH); if (depName.endsWith(WAR_EXTENSION)) { MountExplodedMarker.setMountExploded(depUnit); } }
@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { DeploymentUnit unit = phaseContext.getDeploymentUnit(); if (!unit.getName().endsWith( this.archiveSuffix )) { return; } ArchivedDeploymentMarker.applyMark( unit ); // Tell AS to treat it as an archive and mount them exploded MountExplodedMarker.setMountExploded( unit ); }
protected DeploymentUnit createAndInitializeDeploymentUnit(final ServiceRegistry registry) { final DeploymentUnit deploymentUnit = new DeploymentUnitImpl(parent, name, registry); deploymentUnit.putAttachment(Attachments.RUNTIME_NAME, name); deploymentUnit.putAttachment(Attachments.MANAGEMENT_NAME, managementName); deploymentUnit.putAttachment(Attachments.DEPLOYMENT_CONTENTS, contentsInjector.getValue()); deploymentUnit.putAttachment(DeploymentResourceSupport.REGISTRATION_ATTACHMENT, registration); deploymentUnit.putAttachment(DeploymentResourceSupport.MUTABLE_REGISTRATION_ATTACHMENT, mutableRegistration); deploymentUnit.putAttachment(DeploymentResourceSupport.DEPLOYMENT_RESOURCE, resource); deploymentUnit.putAttachment(Attachments.DEPLOYMENT_RESOURCE_SUPPORT, new DeploymentResourceSupport(deploymentUnit)); deploymentUnit.putAttachment(Attachments.CAPABILITY_SERVICE_SUPPORT, capabilityServiceSupport); deploymentUnit.putAttachment(Attachments.VAULT_READER_ATTACHMENT_KEY, vaultReader); deploymentUnit.putAttachment(Attachments.DEPLOYMENT_OVERLAY_INDEX, deploymentOverlays); deploymentUnit.putAttachment(Attachments.PATH_MANAGER, pathManagerInjector.getValue()); if(this.isExplodedContent) { MountExplodedMarker.setMountExploded(deploymentUnit); } // Attach the deployment repo deploymentUnit.putAttachment(Attachments.SERVER_DEPLOYMENT_REPOSITORY, serverDeploymentRepositoryInjector.getValue()); return deploymentUnit; }
protected DeploymentUnit createAndInitializeDeploymentUnit(final ServiceRegistry registry) { final DeploymentUnit deploymentUnit = new DeploymentUnitImpl(parent, name, registry); deploymentUnit.putAttachment(Attachments.RUNTIME_NAME, name); deploymentUnit.putAttachment(Attachments.MANAGEMENT_NAME, managementName); deploymentUnit.putAttachment(Attachments.DEPLOYMENT_CONTENTS, contentsInjector.getValue()); deploymentUnit.putAttachment(DeploymentResourceSupport.REGISTRATION_ATTACHMENT, registration); deploymentUnit.putAttachment(DeploymentResourceSupport.MUTABLE_REGISTRATION_ATTACHMENT, mutableRegistration); deploymentUnit.putAttachment(DeploymentResourceSupport.DEPLOYMENT_RESOURCE, resource); deploymentUnit.putAttachment(Attachments.DEPLOYMENT_RESOURCE_SUPPORT, new DeploymentResourceSupport(deploymentUnit)); deploymentUnit.putAttachment(Attachments.CAPABILITY_SERVICE_SUPPORT, capabilityServiceSupport); deploymentUnit.putAttachment(Attachments.VAULT_READER_ATTACHMENT_KEY, vaultReader); deploymentUnit.putAttachment(Attachments.DEPLOYMENT_OVERLAY_INDEX, deploymentOverlays); deploymentUnit.putAttachment(Attachments.PATH_MANAGER, pathManagerInjector.getValue()); if(this.isExplodedContent) { MountExplodedMarker.setMountExploded(deploymentUnit); } // Attach the deployment repo deploymentUnit.putAttachment(Attachments.SERVER_DEPLOYMENT_REPOSITORY, serverDeploymentRepositoryInjector.getValue()); return deploymentUnit; }