Package org.jboss.deployers.vfs.spi.client

Examples of org.jboss.deployers.vfs.spi.client.VFSDeployment


/* 437 */     return (VFSDeployment)this.applications.remove(name);
/*     */   }
/*     */
/*     */   protected VFSDeployment getApplication(String name)
/*     */   {
/* 442 */     VFSDeployment deployment = (VFSDeployment)this.applications.get(name);
/* 443 */     return deployment;
/*     */   }
View Full Code Here


/*     */     throws Exception
/*     */   {
/* 210 */     if (!(deployment instanceof VFSDeployment)) {
/* 211 */       throw new DeploymentException("Structure can only be determined for VFSDeployments " + deployment);
/*     */     }
/* 213 */     VFSDeployment vfsDeployment = (VFSDeployment)deployment;
/*     */
/* 215 */     VirtualFile root = vfsDeployment.getRoot();
/* 216 */     if (root == null)
/* 217 */       throw new IllegalStateException("Deployment has no root " + deployment);
/* 218 */     if (!doDetermineStructure(root, null, root, structure))
/* 219 */       throw new DeploymentException("No deployer recognised the structure of " + deployment.getName());
/*     */   }
View Full Code Here

/*    */
/*    */   protected DeploymentContext createRootDeploymentContext(Deployment deployment) throws Exception
/*    */   {
/* 55 */     if ((deployment instanceof VFSDeployment))
/*    */     {
/* 57 */       VFSDeployment vfsDeployment = (VFSDeployment)deployment;
/* 58 */       return new AbstractVFSDeploymentContext(vfsDeployment.getRoot(), "");
/*    */     }
/* 60 */     return super.createRootDeploymentContext(deployment);
/*    */   }
View Full Code Here

/*     */
/* 598 */     VirtualFile root = this.activeProfile.getRootFile(phase);
/* 599 */     if (log.isTraceEnabled())
/* 600 */       log.trace("applyTemplate, profile=" + this.activeProfile + ", deploymentBaseName=" + deploymentBaseName + ", phase=" + phase + ", info=" + info);
/* 601 */     VirtualFile vf = template.applyTemplate(root, deploymentBaseName, info);
/* 602 */     VFSDeployment ctx = this.deploymentFactory.createVFSDeployment(vf);
/* 603 */     this.activeProfile.addDeployment(ctx, phase);
/* 604 */     this.mainDeployer.addDeployment(ctx);
/* 605 */     template.updateTemplateDeployment(ctx, info);
/* 606 */     this.mainDeployer.process();
/*     */
/* 609 */     Map mos = this.mainDeployer.getManagedObjects(ctx.getName());
/* 610 */     log.debug("applyTemplate, profile=" + this.activeProfile + ", deploymentBaseName=" + deploymentBaseName + ", phase=" + phase + ", :" + mos);
/* 611 */     for (ManagedProperty prop : info.getProperties().values())
/*     */     {
/* 614 */       if (prop.getValue() == null) {
/*     */         continue;
View Full Code Here

/*     */     }
/*     */
/* 201 */     ProfileKey key = new ProfileKey(name);
/* 202 */     Profile profile = ps.getProfile(key);
/*     */
/* 205 */     VFSDeployment first = null;
/*     */
/* 208 */     Collection boostraps = profile.getDeployments(ManagedDeployment.DeploymentPhase.BOOTSTRAP);
/* 209 */     for (VFSDeployment d : boostraps)
/*     */     {
/* 211 */       deployer.addDeployment(d);
/* 212 */       if (first == null)
/* 213 */         first = d;
/*     */     }
/* 215 */     deployer.process();
/* 216 */     deployer.checkComplete();
/*     */
/* 218 */     Thread thread = Thread.currentThread();
/* 219 */     ClassLoader old = thread.getContextClassLoader();
/*     */
/* 221 */     MainDeployerImpl hack = (MainDeployerImpl)deployer;
/* 222 */     ClassLoader cl = null;
/* 223 */     if (first != null)
/*     */     {
/* 225 */       DeploymentContext ctx = hack.getDeploymentContext(first.getName());
/* 226 */       if (ctx != null)
/* 227 */         cl = ctx.getClassLoader();
/*     */     }
/* 229 */     if (cl != null) {
/* 230 */       thread.setContextClassLoader(cl);
View Full Code Here

/* 502 */     if (this.log.isTraceEnabled())
/*     */     {
/* 504 */       this.log.trace("Deploying: " + component);
/*     */     }
/*     */
/* 507 */     VFSDeployment deployment = null;
/*     */     try
/*     */     {
/* 510 */       Profile profile = this.profileService.getProfile(this.profileKey);
/* 511 */       deployment = add(profile, component);
/*     */     }
/*     */     catch (Exception e)
/*     */     {
/* 515 */       this.log.debug("Failed to deploy: " + component, e);
/*     */     }
/*     */
/* 518 */     if (!this.deployedSet.containsKey(component))
/*     */     {
/* 520 */       this.deployedSet.put(component, deployment.getName());
/*     */     }
/*     */   }
View Full Code Here

/*    */ public class VFSBootstrapScannerImpl extends VFSScanner
/*    */ {
/*    */   protected VFSDeployment add(Profile profile, VirtualFile file)
/*    */     throws Exception
/*    */   {
/* 39 */     VFSDeployment deployment = createDeployment(file);
/* 40 */     if (!profile.hasDeployment(deployment.getName(), ManagedDeployment.DeploymentPhase.BOOTSTRAP))
/* 41 */       profile.addDeployment(deployment, ManagedDeployment.DeploymentPhase.BOOTSTRAP);
/* 42 */     return deployment;
/*    */   }
View Full Code Here

/*    */ public class VFSDeployerScannerImpl extends VFSScanner
/*    */ {
/*    */   protected VFSDeployment add(Profile profile, VirtualFile file)
/*    */     throws Exception
/*    */   {
/* 39 */     VFSDeployment deployment = createDeployment(file);
/* 40 */     if (!profile.hasDeployment(deployment.getName(), ManagedDeployment.DeploymentPhase.DEPLOYER))
/* 41 */       profile.addDeployment(deployment, ManagedDeployment.DeploymentPhase.DEPLOYER);
/* 42 */     return deployment;
/*    */   }
View Full Code Here

/* 264 */       for (Resource res : resources)
/*     */       {
/* 266 */         if (!(res instanceof VFSDeploymentResource))
/*     */           continue;
/* 268 */         VFSDeploymentResource vfsres = (VFSDeploymentResource)res;
/* 269 */         VFSDeployment deployment = (VFSDeployment)vfsres.getProperties().get("deployment");
/* 270 */         if (deployment != null) {
/* 271 */           deployments.add(deployment);
/*     */         }
/*     */       }
/*     */     }
View Full Code Here

/* 289 */     for (Resource res : resources)
/*     */     {
/* 291 */       if (!(res instanceof VFSDeploymentResource))
/*     */         continue;
/* 293 */       VFSDeploymentResource vfsres = (VFSDeploymentResource)res;
/* 294 */       VFSDeployment deployment = (VFSDeployment)vfsres.getProperties().get("deployment");
/* 295 */       if (deployment != null) {
/* 296 */         deployments.add(deployment);
/*     */       }
/*     */     }
/* 299 */     return deployments;
View Full Code Here

TOP

Related Classes of org.jboss.deployers.vfs.spi.client.VFSDeployment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.