protected DeploymentUnit createAndInitializeDeploymentUnit(ServiceRegistry registry) { final String deploymentName = deploymentRoot.getRootName(); final DeploymentUnit deploymentUnit = new DeploymentUnitImpl(parent, deploymentName, registry); deploymentUnit.putAttachment(Attachments.DEPLOYMENT_ROOT, deploymentRoot); deploymentUnit.putAttachment(Attachments.MODULE_SPECIFICATION, new ModuleSpecification()); 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, parent.getAttachment(Attachments.DEPLOYMENT_OVERLAY_INDEX)); deploymentUnit.putAttachment(Attachments.PATH_MANAGER, pathManager); return deploymentUnit; }
protected DeploymentUnit createAndInitializeDeploymentUnit(ServiceRegistry registry) { final String deploymentName = deploymentRoot.getRootName(); final DeploymentUnit deploymentUnit = new DeploymentUnitImpl(parent, deploymentName, registry); deploymentUnit.putAttachment(Attachments.DEPLOYMENT_ROOT, deploymentRoot); deploymentUnit.putAttachment(Attachments.MODULE_SPECIFICATION, new ModuleSpecification()); 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, parent.getAttachment(Attachments.DEPLOYMENT_OVERLAY_INDEX)); deploymentUnit.putAttachment(Attachments.PATH_MANAGER, pathManager); 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; }
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; }