Package org.jboss.deployers.spi.management

Examples of org.jboss.deployers.spi.management.DeploymentTemplate


   }

   public DeploymentTemplateInfo getTemplate(String name)
      throws NoSuchDeploymentException
   {
      DeploymentTemplate template = templates.get(name);
      if( template == null )
      {
         formatter.applyPattern(i18n.getString("ManagementView.NoSuchTemplate")); //$NON-NLS-1$
         Object[] args = {name};
         String msg = formatter.format(args);
         throw new IllegalStateException(msg);
      }

      // Make sure to return a copy to avoid call by reference uses modifying the template values
      DeploymentTemplateInfo info = template.getInfo();
      info = info.copy();
      log.debug("getTemplate, "+info);
      return info;
   }
View Full Code Here


      if(deploymentBaseName == null)
         throw new IllegalArgumentException("Null deployment base name.");
      if(info == null)
         throw new IllegalArgumentException("Null template info.");

      DeploymentTemplate template = templates.get(info.getName());
      if( template == null )
      {
         formatter.applyPattern(i18n.getString("ManagementView.NoSuchTemplate")); //$NON-NLS-1$
         Object[] args = {info.getName()};
         String msg = formatter.format(args);
View Full Code Here

      if(deploymentBaseName == null)
         throw new IllegalArgumentException("Null deployment base name.");
      if(info == null)
         throw new IllegalArgumentException("Null template info.");
     
      DeploymentTemplate template = templates.get(info.getName());
      if( template == null )
      {
         formatter.applyPattern(i18n.getString("ManagementView.NoSuchTemplate"));
         Object[] args = {info.getName()};
         String msg = formatter.format(args);
View Full Code Here

   }

   public DeploymentTemplateInfo getTemplate(String name)
      throws NoSuchDeploymentException
   {
      DeploymentTemplate template = templates.get(name);
      if( template == null )
      {
         formatter.applyPattern(i18n.getString("ManagementView.NoSuchTemplate")); //$NON-NLS-1$
         Object[] args = {name};
         String msg = formatter.format(args);
         throw new IllegalStateException(msg);
      }
  
      // Make sure to return a copy to avoid call by reference uses modifying the template values
      DeploymentTemplateInfo info = template.getInfo();
      info = info.copy();
      log.debug("getTemplate, "+info);
      return info;
   }
View Full Code Here

/*     */   }
/*     */
/*     */   public DeploymentTemplateInfo getTemplate(String name)
/*     */     throws NoSuchDeploymentException
/*     */   {
/* 571 */     DeploymentTemplate template = (DeploymentTemplate)this.templates.get(name);
/* 572 */     if (template == null)
/*     */     {
/* 574 */       this.formatter.applyPattern(this.i18n.getString("ManagementView.NoSuchTemplate"));
/* 575 */       Object[] args = { name };
/* 576 */       String msg = this.formatter.format(args);
/* 577 */       throw new IllegalStateException(msg);
/*     */     }
/*     */
/* 580 */     DeploymentTemplateInfo info = template.getInfo();
/* 581 */     log.debug("getTemplate, " + info);
/* 582 */     return info;
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public void applyTemplate(ManagedDeployment.DeploymentPhase phase, String deploymentBaseName, DeploymentTemplateInfo info)
/*     */     throws Exception
/*     */   {
/* 588 */     DeploymentTemplate template = (DeploymentTemplate)this.templates.get(info.getName());
/* 589 */     if (template == null)
/*     */     {
/* 591 */       this.formatter.applyPattern(this.i18n.getString("ManagementView.NoSuchTemplate"));
/* 592 */       Object[] args = { info.getName() };
/* 593 */       String msg = this.formatter.format(args);
/* 594 */       throw new IllegalStateException(msg);
/*     */     }
/*     */
/* 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())
View Full Code Here

TOP

Related Classes of org.jboss.deployers.spi.management.DeploymentTemplate

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.