public void create(Deployment deployment) { deploymentManager.create(deployment, this); }
public void destroy(Deployment deployment) { deploymentManager.destroy(deployment, this); }
public void destroy() { List<DeploymentAspect> managerAspects = new ArrayList<DeploymentAspect>(); managerAspects.addAll(manager.getDeploymentAspects()); Iterator<DeploymentAspect> it = aspects.iterator(); while (it.hasNext()) { DeploymentAspect aspect = it.next(); managerAspects.remove(aspect); } manager.setDeploymentAspects(managerAspects); }
public void deploy(DeploymentInfo unit) throws DeploymentException { if (ignoreDeployment(unit)) return; if (isWebServiceDeployment(unit)) { log.debug("deploy: " + unit.shortName); Deployment dep = getDeployment(unit); if (dep == null) { dep = createDeployment(unit); dep.addAttachment(DeploymentInfo.class, unit); } getDeploymentAspectManager().deploy(dep); unit.context.put(Deployment.class, dep); } }
protected void undeploy(Deployment deployment) throws Exception { List<DeploymentAspect> aspects = getDeploymentAspects(); ClassLoader origClassLoader = WildFlySecurityManager.getCurrentContextClassLoaderPrivileged(); try { WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(ClassLoaderProvider.getDefaultProvider().getServerIntegrationClassLoader()); DeploymentAspectManager dam = new DeploymentAspectManagerImpl(); dam.setDeploymentAspects(aspects); dam.undeploy(deployment); } finally { WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(origClassLoader); } }
/** * Triggers the WS deployment aspects, which process the deployment and * install the endpoint services. * * @param target * @param unit */ protected void doDeploy(ServiceTarget target, DeploymentUnit unit) { List<DeploymentAspect> aspects = getDeploymentAspects(); ClassLoader origClassLoader = WildFlySecurityManager.getCurrentContextClassLoaderPrivileged(); Deployment dep = null; try { WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(ClassLoaderProvider.getDefaultProvider().getServerIntegrationClassLoader()); dep = unit.getAttachment(WSAttachmentKeys.DEPLOYMENT_KEY); dep.addAttachment(ServiceTarget.class, target); DeploymentAspectManager dam = new DeploymentAspectManagerImpl(); dam.setDeploymentAspects(aspects); dam.deploy(dep); } finally { if (dep != null) { dep.removeAttachment(ServiceTarget.class); } WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(origClassLoader); } }
public void undeploy(DeploymentInfo unit) { if (ignoreDeployment(unit)) return; Deployment dep = getDeployment(unit); if (dep != null) { log.debug("undeploy: " + unit.shortName); getDeploymentAspectManager().undeploy(dep); } }
public void start(Deployment deployment) { deploymentManager.start(deployment, this); }
public void stop(Deployment deployment) { deploymentManager.stop(deployment, this); }
unsortedAspects.addAll(manager.getDeploymentAspects()); unsortedAspects.addAll(aspects); if (manager.getParent() != null) Iterator<DeploymentAspect> it = manager.getParent().getDeploymentAspects().iterator(); while (it.hasNext()) throwSortException(sortedAspects, allAspects); manager.setDeploymentAspects(sortedAspects);
public void deploy(DeploymentUnit unit) throws DeploymentException { if (ignoreDeployment(unit)) return; if (isWebServiceDeployment(unit)) { log.debug("deploy: " + unit.getName()); Deployment dep = getDeployment(unit); if (dep == null) { dep = createDeployment(unit); dep.addAttachment(DeploymentUnit.class, unit); } getDeploymentAspectManager().deploy(dep); unit.addAttachment(Deployment.class, dep); } }
protected void undeploy(Deployment deployment) throws Exception { List<DeploymentAspect> aspects = getDeploymentAspects(); ClassLoader origClassLoader = WildFlySecurityManager.getCurrentContextClassLoaderPrivileged(); try { WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(ClassLoaderProvider.getDefaultProvider().getServerIntegrationClassLoader()); DeploymentAspectManager dam = new DeploymentAspectManagerImpl(); dam.setDeploymentAspects(aspects); dam.undeploy(deployment); } finally { WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(origClassLoader); } }
/** * Triggers the WS deployment aspects, which process the deployment and * install the endpoint services. * * @param target * @param unit */ protected void doDeploy(ServiceTarget target, DeploymentUnit unit) { List<DeploymentAspect> aspects = getDeploymentAspects(); ClassLoader origClassLoader = WildFlySecurityManager.getCurrentContextClassLoaderPrivileged(); Deployment dep = null; try { WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(ClassLoaderProvider.getDefaultProvider().getServerIntegrationClassLoader()); dep = unit.getAttachment(WSAttachmentKeys.DEPLOYMENT_KEY); dep.addAttachment(ServiceTarget.class, target); DeploymentAspectManager dam = new DeploymentAspectManagerImpl(); dam.setDeploymentAspects(aspects); dam.deploy(dep); } finally { if (dep != null) { dep.removeAttachment(ServiceTarget.class); } WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(origClassLoader); } }
public void undeploy(DeploymentUnit unit) { if (ignoreDeployment(unit)) return; Deployment dep = getDeployment(unit); if (dep != null) { log.debug("undeploy: " + unit.getName()); getDeploymentAspectManager().undeploy(dep); } }
public void start(Deployment deployment) { assemble(); dam.start(deployment, this); }
public void stop(Deployment deployment) { assemble(); dam.stop(deployment, this); }
public void deploy(DeploymentUnit unit) throws DeploymentException { if (ignoreDeployment(unit)) return; if (isWebServiceDeployment(unit)) { log.debug("deploy: " + unit.getName()); Deployment dep = getDeployment(unit); if (dep == null) { dep = createDeployment(unit); dep.addAttachment(DeploymentUnit.class, unit); } getDeploymentAspectManager().deploy(dep); unit.addAttachment(Deployment.class, dep); } }
@Override public void destroy(Context context) throws Exception { List<Endpoint> eps = context.getEndpoints(); if (eps == null || eps.isEmpty()) { return; } Deployment deployment = eps.get(0).getService().getDeployment(); List<DeploymentAspect> aspects = getDeploymentAspects(); try { stopWebApp(deployment.getAttachment(StandardContext.class)); } finally { ClassLoader origClassLoader = SecurityActions.getContextClassLoader(); try { SecurityActions.setContextClassLoader(ClassLoaderProvider.getDefaultProvider().getServerIntegrationClassLoader()); DeploymentAspectManager dam = new DeploymentAspectManagerImpl(); dam.setDeploymentAspects(aspects); dam.undeploy(deployment); } finally { SecurityActions.setContextClassLoader(origClassLoader); } } }
dep.addAttachment(ServiceTarget.class, target); DeploymentAspectManager dam = new DeploymentAspectManagerImpl(); dam.setDeploymentAspects(aspects); dam.deploy(dep);
public void undeploy(DeploymentUnit unit) { if (ignoreDeployment(unit)) return; Deployment dep = getDeployment(unit); if (dep != null) { log.debug("undeploy: " + unit.getName()); getDeploymentAspectManager().undeploy(dep); } }