Package org.jboss.profileservice.spi

Examples of org.jboss.profileservice.spi.NoSuchDeploymentException


  
   private Profile getProfileForDeployment(String name) throws Exception
   {
      ProfileKey key = getProfileKeyForDeployemnt(name);
      if(key == null)
         throw new NoSuchDeploymentException("No associated profile found for deployment:" + name);
     
      return this.ps.getActiveProfile(key);
   }
View Full Code Here


        if (forceLoad) {
            managementView.load();
        }
        String deploymentName = getDeploymentName();
        if (deploymentName == null) {
            throw new NoSuchDeploymentException("Did not find deployment with key [" + deploymentKey + "]");
        }
        return managementView.getDeployment(deploymentName);
    }
View Full Code Here

         {
            ctx = super.getDeployment(names.get(0));
         }
         else if(names.size() > 1)
         {
            throw new NoSuchDeploymentException("Multiple deployments found for: "+ vfsPath +", available: " + names);           
         }
      }
      if(ctx == null)
      {
         log.debug("Failed to find application for: "+vfsPath+", available: " + getDeploymentNames());
         throw new NoSuchDeploymentException("Failed to find deployment in file: " + vfsPath);
      }
      return ctx;
   }
View Full Code Here

      return Collections.emptySet();
   }
  
   public ProfileDeployment getDeployment(String name) throws NoSuchDeploymentException
   {
      throw new NoSuchDeploymentException("This profiles does not contain any deployments.");
   }
View Full Code Here

         {
            ctx = super.getDeployment(names.get(0));
         }
         else if(names.size() > 1)
         {
            throw new NoSuchDeploymentException("Multiple deployments found for: "+ vfsPath +", available: " + names);           
         }
      }
      if(ctx == null)
      {
         log.debug("Failed to find application for: "+vfsPath+", available: " + getDeploymentNames());
         throw new NoSuchDeploymentException("Failed to find deployment in file: " + vfsPath);
      }
      return ctx;
   }
View Full Code Here

/*     */     throws NoSuchDeploymentException
/*     */   {
/* 196 */     VFSDeployment d = findDeployment(name, phase);
/*     */
/* 198 */     if (d == null)
/* 199 */       throw new NoSuchDeploymentException("name=" + name + ", phase=" + phase);
/* 200 */     return d;
/*     */   }
View Full Code Here

/* 492 */     if (matches.size() == 0)
/*     */     {
/* 494 */       this.formatter.applyPattern(this.i18n.getString("ManagementView.NoSuchDeploymentException"));
/* 495 */       Object[] args = { regex };
/* 496 */       String msg = this.formatter.format(args);
/* 497 */       throw new NoSuchDeploymentException(msg);
/*     */     }
/* 499 */     return matches;
/*     */   }
View Full Code Here

/* 677 */     if (ctx == null)
/*     */     {
/* 679 */       this.formatter.applyPattern(this.i18n.getString("ManagementView.NoSuchDeploymentException"));
/* 680 */       Object[] args = { deploymentName };
/* 681 */       String msg = this.formatter.format(args);
/* 682 */       throw new NoSuchDeploymentException(msg);
/*     */     }
/*     */
/* 685 */     if (!this.mainDeployer.removeDeployment(ctx.getName()))
/* 686 */       throw new NoSuchDeploymentException("MainDeployer failed to remove: " + ctx.getName());
/*     */   }
View Full Code Here

/* 710 */     if (mdCtx == null)
/*     */     {
/* 712 */       this.formatter.applyPattern(this.i18n.getString("ManagementView.NoSuchDeploymentException"));
/* 713 */       Object[] args = { name };
/* 714 */       String msg = this.formatter.format(args);
/* 715 */       throw new NoSuchDeploymentException(msg);
/*     */     }
/*     */
/* 719 */     ManagedDeployment compMD = (ManagedDeployment)this.managedDeployments.get(md.getName());
/* 720 */     log.debug("updateComponent, profile=" + this.activeProfile + ", deploymentName=" + name + ", phase=" + phase + ", :" + compMD);
/* 721 */     ManagedComponent serverComp = compMD.getComponent(comp.getName());
View Full Code Here

/*     */   protected VFSDeployment getBootstrap(String vfsPath)
/*     */     throws Exception
/*     */   {
/* 439 */     Resource res = this.delegate.getResource(vfsPath);
/* 440 */     if ((res == null) || (!(res instanceof VFSDeploymentResource)))
/* 441 */       throw new NoSuchDeploymentException(vfsPath);
/* 442 */     VFSDeploymentResource vfsres = (VFSDeploymentResource)res;
/* 443 */     VFSDeployment deployment = (VFSDeployment)vfsres.getProperties().get("deployment");
/* 444 */     return deployment;
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.profileservice.spi.NoSuchDeploymentException

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.